Portal Home > Knowledgebase > Articles Database > Cannot allocate memory error


Cannot allocate memory error




Posted by Nightmaster, 02-01-2012, 11:42 AM
Hello there. I own a VPS server with CentOS, and 1.5GB RAM memmory, which is reinstalled few days ago. I noted that i periodically get error - 500 internal server error pages, but for most time site is working fine. I wanted to investigate what caused this error and i found this in server error log: There is plenty of those errors in error log. Now im not sure what is causing it, as i don't use suphp, and my memmory is not full though. RAM usage is never higher than 45% CPU usage - 12% HDD usage - 13% When RAM usage goes higher than 80% i should get email allert, but i never get some, so RAM memmory is not the problem i think. I guess that it's some kind of problem with chmod, but i'm not sure. Also, for what it's worth, i'm using kloxo panel. Regards.

Posted by linux7802, 02-01-2012, 12:19 PM
Do you have installed any memory monitoring modules on your VPS, if no then contact VPS provider and consult this issue with them because some VPS provider company apply memory usage monitoring on the main node where your VPS is hosted....

Posted by Allbert, 02-01-2012, 01:38 PM
you are sure your vps has ded Hardware ? i mean maybe your server provider oversell and physical your memory is limit !

Posted by devonblzx, 02-01-2012, 02:14 PM
I'm assuming this is OpenVZ or Virtuozzo, simply type: cat /proc/user_beancounters Look in the far right column for failcounts. There is more than one memory limit in OpenVZ and it is possible your host hasn't set them properly or your server is using an abnormal amount of one.

Posted by Nightmaster, 03-01-2012, 03:33 PM
Hello again. I thought that my problem dissapeared but yesterday i noticed the same errors again. I'm pretty sure that my memory is not limited, as i work with my provider for a long period of years now, and i trust them. Here is what i get after typing cat /proc/user_beancounters: Does it look okay? What else can i try? Any suggestions please?

Posted by viGeek, 03-01-2012, 06:38 PM
I always find it helpful to look at 'VMPeak' of an individual process to see if at any point usage went up explicitly. This is the maximum virtual memory space used by the process, in kB (1024 bytes). You can review i.e: /proc/1617/status Format is: /proc/pid/status

Posted by UNIXy, 03-01-2012, 06:43 PM
Hopefully you've had Sysstat installed all along. See what sar -r returns. Regards

Posted by Nightmaster, 03-02-2012, 06:28 PM
Thank you. I tried with random pid, and here is the results: Anything looks strange there to you? @UNIXy - sorry, i don't have Sysstat installed.

Posted by UNIXy, 03-06-2012, 12:55 PM
It's never too late. I'd get it installed. You just need a couple of days worth of history to figure things out. Cheers Joe / UNIXY

Posted by SiteServing, 03-08-2012, 06:48 PM
Are you sure the memory limit is not set too low in php.ini ?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
reseller3k & rockmyweb (Views: 634)
Aplus Down!!! (Views: 639)

Language: