Windows server: Fatal error: Out of memory

Windows server: Fatal error: Out of memory

by Allen Swanson -
Number of replies: 4
Moodle is running on a Windows 2003 server with IIS6 and MySQL. The install was completed last April, so it may be a little outdated. Everything seemed to be going fine until today when the out of memory error appeared as people attempted to access the directory.

Fatal error: Out of memory (allocated 262144) (tried to allocate 98304 bytes) in D:\Inetpub\webroot\moodle\lib\setup.php on line 252

Attempts to access the login page also produce similar errors.

I'm not sure where to start looking for problems.

Suggestions, anyone?

Allen Swanson
Average of ratings: -
In reply to Allen Swanson

Re: Windows server: Fatal error: Out of memory

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers

I'd try restarting IIS. PHP may be leaking memory, and after lots of request, consume all of the configured memory. Restarting IIS discards PHP state and starts will all the memory freed.

Saludos. Iñaki.

In reply to Iñaki Arenaza

Re: Windows server: Fatal error: Out of memory

by Allen Swanson -
Thanks for the suggestion.

I restarted the server and all seems well now. I'm worried that this may occur again.

Does anyone know how to detect memory leaks from PHP? If so, I could monitor leaks and stop a reoccurrance.

Allen
In reply to Allen Swanson

Re: Windows server: Fatal error: Out of memory

by Dennis Flynn -
what version of PHP? I've seen posts and had trouble myself with 5.1.x. I've seen posts of troubles with 5.2.3. I've been stable on 5.2.1 and have seen other posts indicating the same.

Not sure that's your problem, so take this for what it's worth...
In reply to Dennis Flynn

Re: Windows server: Fatal error: Out of memory

by Allen Swanson -
We're running PHP 5.2.2

Its a fairly default installation.

After a restart we've been up for over 24 hours without a reocurrance.


Allen