Hi: I am somehow newbie and am trapped into a problem. I am trying to find a solution for this error that consequentially leads to Apache Server crash. Following is the message as seen in the error.log file: PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 32768 bytes) SERVER CHARACTERISTICS: Windows 2008 Enterprise Server PHP 5.2.6 Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e RAM=8gb, PHP SERVER PARAMETERS: max_execution_time = 720 max_input_time = 360 memory_limit = 5120 MB After a few messages like this, the server ends with the message: [notice] Parent: child process exited with status 255 -- Restarting. Whenever it happens, I don't see a substantial rise in memory usage (well under the 5GB established in the configuration) I think part of the problem is originated because the server is not releasing memory, and the data is adding-up. It is surely a misconfiguration of my server I have searched everywhere but didn't found a satisfying solution. Thanks for your help.
Try changing php.ini to... memory_limit = 128M and add to httpd.conf RLimitMEM 1073741824 2147483648 restart & pray
Hi, These things may happen also because of imperfect script. Be sure to check your script for memory leaks! More often than not is our logical error than the system error. All the best. Thanks imphp
Check for any loops...You most likely are hitting a snag point where the script violently loops into a death spin. I can help if you need, hit me up my PM or IM.
The first thing I'd try is setting a non-infinate limit for that in httpd.conf I believe forcing the worker threads to respawn occasionally will free up memory.
I've made changes to this parameter, trying values from 5, 10, to 500 and always ends with the same result: after the specified number of threads, the server "crashes" or stops working (I really don't know if apache "shuts down" normally or not", there isn't any evidence).
thanks, I started with 64MB, passed to 128, 256, 1024, 2048, now the value is in 5120 MB and the problem persists (the server doesn't indicate memory usage over 2GB). I think the problem isn't really in the memory assigned in PHP, but is limited by Apache, somewhere else. There is also the fact that apparently the memory isn't released at a sufficient "rate", so it "builds-up"
Thanks, after modifying my httpd.conf file, an error is generated in the error.log file (My server is Windows 2008): [error] RLimitMEM not supported on this platform
Thanks, how can I check for them, is there any technique to detect them? I have checked code and it seems there is no problem.
Thanks, I have done, but the server emits an error: [error] RLimitMEM not supported on this platform My OS = Win2008 Server
memory limit variable in php.ini file is one option can you please check that on your linux server ... core dump is not getting created because your program crash ... this happens lot of time and you never come 2 know
Thanks, unfortunately, my server is Windows 2008, I have a correction on the configuration from: memory_limit = 5120 MB to: memory_limit = 5120M maybe it can help, but I'm still anxious about the memory "build-up".
you can try this solution, It works for me on windows using XAMPPLITE. Add ini_set('memory_limit', -1); Code (markup): to your code.