Tuesday, November 4, 2008

Running out of ram memory?

Hi everyone, a couple of days ago I was working at home with Eclipse, Geronimo, Mysql, Httpd and all the stuff you need to make things happen, when all of the sudden my 1GB ram memory wasn't enough for the duty... so after googling for a while I found out how to increase my swap space with a file and in just 5 minutes I was back on track, here are the details about how to do it:

dd if=/dev/zero of=/swapfile bs=1024 count=100000
mkswap /swapfile
swapon /swapfile

And if you want to have it active the next time you start your system then remember adding it to the fstab file like this:

/swapfile none   swap   sw   0   0

enjoy ;)
blog comments powered by Disqus