When reloading nginx-0.8.54, number of workers increases

Maxim Dounin mdounin at mdounin.ru
Thu May 24 10:32:31 UTC 2012


On Thu, May 24, 2012 at 06:10:47AM -0400, zealot83 wrote:

> Hello.
> This is the situation:
> I giva heavy traffic continually by using ApacheBench, say:
> while :; do ab -n 100000 -c 1000 'http://localhost/; done.
> And also I reload nginx continually by using while syntax.
> When looking at the master/worker process by using ps command, 
> the number of worker processes increase in a moment.

This is normal.  While reloading configuration nginx starts new 
worker processes and then shutdowns old ones.  Old workers exit as 
long as they finish processing of requests in progress.

Maxim Dounin

More information about the nginx mailing list