PHP Fatal error: Out of memory

PHP Fatal error: Out of memory

by Ceri Richards -
Number of replies: 3
Hi All,

Discovered this in my Apache site error logs last night, which seems to have caused performance issues when browsing through courses and the site hanging when materials are attempting to be uploaded. See extract from error log below -

[Wed Feb 04 19:03:08 2009] [error] [client 92.0.1.183] PHP Fatal error: Out of memory (allocated 6291456) (tried to allocate 24576 bytes) in D:\\Apache2.2\\htdocs\\lib\\accesslib.php on line 3325, referer: http://www.merthyrlearns.com/
[Wed Feb 04 19:03:08 2009] [error] [client 92.0.1.183] PHP Fatal error: Out of memory (allocated 4718592) (tried to allocate 98304 bytes) in D:\\Apache2.2\\htdocs\\lib\\filterlib.php on line 193, referer: http://www.merthyrlearns.com/

This continues until Apache eventually crashes and re-starts with the following event -
zend_mm_heap corrupted
[Thu Feb 05 09:56:59 2009] [notice] Parent: child process exited with status 1 -- Restarting.

This resolves the performance and out of memory issues. For info, we are running Moodle 1.9.3+, PHP 5.2.6, Apache 2.2.10, Server 2003. Our PHP memory limit value is set to 128MB.

Cheers,
Ceri
Average of ratings: -
In reply to Ceri Richards

Re: PHP Fatal error: Out of memory

by Ceri Richards -
Anything? smile
In reply to Ceri Richards

Re: PHP Fatal error: Out of memory

by Heather P -
Picture of Particularly helpful Moodlers
Hi
not sure what you are trying to ask. You seem to have made a statement. Have you looked in the Hardware and Performance Forum? There are a lot of issues in there based around Apache crashing and PHP being out of memory.
In reply to Heather P

Re: PHP Fatal error: Out of memory

by Ceri Richards -
Thanks! I didnt think of looking in there. Been reading now for half hour but dont seem much closer apart from a nightly apache re-start. Gives me more ammunition now to move to Linux...

Cheers,
Ceri