View Full Version : [ubuntu] out of memory!

August 10th, 2011, 07:11 PM
I am trying to run a simple perl program that requires getting stock price data from yahoo for just 1 ticker symbol, and it was running fine till this morning, wherein it froze and displayed the message
Out of memory!

I cleared my cache by running the following:

$sudo echo 1 |sudo tee /proc/sys/vm/drop_caches
$sudo echo 2 |sudo tee /proc/sys/vm/drop_caches
$sudo echo 3 |sudo tee /proc/sys/vm/drop_caches

but it hasn't helped.
Even Firefox has been freezing, so I basically cannot do anything on my computer.

can you please let me know how I can fix it? thanks!

August 10th, 2011, 07:17 PM
run your system monitor and look if a proccess is taking up all the memory

August 10th, 2011, 07:42 PM
I just ran that and with everything else closed, the perl program itself takes up 92% of memory...

August 10th, 2011, 07:55 PM
aha, it was a memory leak in the program itself....thanks for the tip :p