Sunday, December 9, 2012

The curious case of memory over load and error 500 on

A strong possiblity it was due to the site being redirected via cloudflare but cannot confirm. OR the code of the software on the site

Fatal error: Out of memory
Error 500
What could be the cause of these errors are they interlinked?
error log shows
[Mon Dec 10 03:12:21 2012] [error] [client xx.xx.xx.xx] (12)
Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/xxxxx/public_html/modules/index.php, referer:

reply from tech support for the error

We have found that the website is continuously hitting the maximum allowed memory of 256 MB which causes 500 Internal server error. When we temporarily increased the limit to 512 MB for your website, the website loaded fine. We have reverted the limit to 256 MB since the shared hosting AUP does not allow us to allocate more than 256 MB memory to a single hosting account. In order to avoid the error, you may have to optimize the website and ensure it does not consume huge memory. Ideally, a website on shared hosting server does not consume more than 100 MB and rarely a website would consume 256 MB memory. Proper optimization of PHP code will ensure that the website will work fine.
R Lad

Server Load 18.72 (2 cpus) (

Announced By
Origin AS Announcement Description
AS4250 Alentus Corporation

No comments:

Post a Comment