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
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.
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
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
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...
Not sure that's your problem, so take this for what it's worth...
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
Its a fairly default installation.
After a restart we've been up for over 24 hours without a reocurrance.
Allen