Handle php out of memory error
Posted
by
PeterMmm
on Pro Webmasters
See other posts from Pro Webmasters
or by PeterMmm
Published on 2012-12-16T11:55:18Z
Indexed on
2012/12/16
17:22 UTC
Read the original article
Hit count: 206
I have a Drupal based web site on a relative small vserver (512MB RAM). Recently the website begins to return php out of memory messages like this:
Fatal error: Out of memory (allocated 17039360) (tried to allocate 77824 bytes) in /home/...
All php.ini memory limit parameters are set to off (-1).
Propably the website has gained of complexity, content, etc. But I cannot interpret fine that message: Does that mean that the whole request has allocated 17MB(?) right now and cannot get 7MB(?) more from the OS. Has the web server spend all memory or has the OS no more memory to allocate ?
I'm not shure if the memory overhead is coming from the web server or another service, because when I get the out-of-memoy message I can't get into the server with ssh. After a while all runs fine again.
© Pro Webmasters or respective owner