PHP crashes on Windows

Hi all,

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.

Thanks,
Jack

[email protected] wrote:

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.

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.