PHP crashes on Windows

jlist9 jlist9 at gmail.com
Tue Oct 20 00:20:18 MSD 2009


Yeah. My workaround was to set PHP_FCGI_MAX_REQUESTS
to 200 since it usually crashes around the 400th request. It's a
performance hit, though, when the PHP process recycles.

>> I'm trying nginx Windows version with PHP in FastCGI mode.
>> It ran fine. Then I tried to bench mark it with Apache ab
>> and I find that PHP (5.2.11) crashes after about 400 requests.
>>
>> Does anyone have similar experience? Any suggestions or fixes?
>> I'm currently putting it in a loop to restart PHP after it crashes.
>>
>> I'm also using nginx with a Python FastCGI server but have
>> no problem with it at all.
>
> Strange it is. Try setting PHP_FCGI_MAX_REQUESTS environment variable to 5
> before php starts.





More information about the nginx mailing list