1 fcgi cannot work well but 5 fcgi process does.

Denis Filimonov denis at filimonov.name
Sun Jan 4 23:25:47 MSK 2009

It's simple math: if the time to generate your test page is bigger than 
timeout * number-of-fastcgi-processes/number-of-concurrent-requests you'll be 
getting timeouts. If you fix the number of processes and the concurrency the 
only variable to play with is the timeout.

On Monday 29 December 2008 11:23:01 Miao Jiang wrote:
> I use nginx/0.6.31+fastcgi to deploy ruby on rails.
> then I use ab to do 'ab -n1000 -c500' for the pressure test.
> when it only run with 1 fastcgi process.
> It works well with ab -n1000 -c1 to -c100
> but in -c500,after about 800 request, the response suddenly returns very
> slowly even timeout. I use 'top' to see the process status, fcgi process
> isn't busy any more.
> then I try add 4 more process, then it works well.
> Can anyone could help me understand how it happens and how to setup
> nginx let it could finish -c500 test with only 1 fcgi process.
> Thanks
> Miao

More information about the nginx mailing list