Memory used % 98 and always 500 Internal Server Error

haysebeyse

Registered
Apr 4, 2013
1
0
1
cPanel Access Level
Website Owner
System information

Server load 1.62 (8 CPUs)
Memory Used 98.09% (4,114,360 of 4,194,304)
Swap Used 0% (0 of 1)

my sites always close
 

PenguinInternet

Well-Known Member
PartnerNOC
Jun 20, 2007
194
26
78
Cardiff, UK
cPanel Access Level
DataCenter Provider
Twitter
Your memory usage and 500 error as per the subject will likely not be linked at all. Linux will always use your available RAM for caching. Your server is not using SWAP either and so this looks fine. Your 500 error is a different matter - have you looked at the error logs to see what is being reported?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Please check the Apache error log when you notice the "500" error message on your website. It's located at:

# /usr/local/apache/logs/error_log

Paste the specific output related to the 500 error message and we can guide you to a solution.

Thank you.
 

allandenis

Registered
Oct 21, 2013
3
0
1
cPanel Access Level
Website Owner
Hi all.

I'm having the very same problem. Here is the error line from the log:

[Mon Oct 21 15:45:47 2013] [error] [client 66.249.66.187] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/allanden/public_html/index.php

It seems that there's not enough memory. How can I fix it?
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hello,

I can see you have setup the 256M limit for your site and it's continuously hitting the memory limit on your server and due to that your site is showing 500 Internal Server Error, You will have to increase your server memory and your site memory limit
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
You may also want to check to make sure you are not reaching any imposed resource limits if you are using a VPS. For instance, with Virtuozzo, you can check the following file for fail counts:

/proc/user_beancounters

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Actually, I've just unzipped Wordpress on the server, and since then (no others things running), I had got the error.
Do you have root access to the server? Is Cloud Linux installed? Have you checked my last reply about the VPS resource limits?

Thank you.
 

jazz1611

Well-Known Member
Jun 5, 2012
82
0
56
cPanel Access Level
Root Administrator
You may also want to check to make sure you are not reaching any imposed resource limits if you are using a VPS. For instance, with Virtuozzo, you can check the following file for fail counts:

/proc/user_beancounters

Thank you.
/http://i.imgur.com/v86WVlm.png

Help me. Now i get errror " Fork: Cannot Memory Locate "
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
The image you provided indicates your VPS is reaching it's memory limit. You will need to contact your VPS hosting provider to see if they can increase the memory limit for you to resolve this issue.

Thank you.