When reloading nginx-0.8.54, number of workers increases
Valentin V. Bartenev
ne at vbart.ru
Thu May 24 11:17:32 UTC 2012
On Thursday 24 May 2012 14:10:47 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.
>
> [irteam at mvdev02.global ~]$ ps aux|grep nginx
> nobody 16879 0.0 0.0 4112 884 ? R 18:43 0:00 nginx:
> worker process
> nobody 16881 0.0 0.0 4168 1160 ? S 18:43 0:00 nginx:
> worker process
> root 16882 0.0 0.0 0 0 pts/3 Z+ 18:43 0:00 [nginx]
> <defunct>
> root 16883 0.0 0.0 3976 392 ? R 18:43 0:00 nginx:
> master process ./sbin/nginx
> irteam 16885 0.0 0.0 5200 772 pts/6 R+ 18:43 0:00 grep
> nginx
> root 23791 0.3 0.0 3976 1004 ? Rs 18:00 0:08 nginx:
> master process ./sbin/nginx
> [irteam at mvdev02.global ~]$ ps aux|grep nginx
> nobody 17610 0.0 0.0 4116 920 ? R 18:43 0:00 nginx:
> worker process
> nobody 17616 0.0 0.0 4112 896 ? R 18:43 0:00 nginx:
> worker process
> nobody 17620 0.0 0.0 4112 904 ? S 18:43 0:00 nginx:
> worker process is shutting down
> nobody 17623 0.0 0.0 4248 1232 ? R 18:43 0:00 nginx:
> worker process is shutting down
> nobody 17625 0.0 0.0 4112 1080 ? S 18:43 0:00 nginx:
> worker process
> irteam 17628 0.0 0.0 5200 752 pts/6 R+ 18:43 0:00 grep
> nginx
> root 23791 0.3 0.0 3976 1004 ? Ss 18:00 0:08 nginx:
> master process ./sbin/nginx
> [irteam at mvdev02.global ~]$ ps aux|grep nginx
> nobody 18071 0.0 0.0 4116 828 ? R 18:43 0:00 nginx:
> worker process
> irteam 18082 0.0 0.0 5200 752 pts/6 R+ 18:43 0:00 grep
> nginx
> nobody 18083 0.0 0.0 4112 864 ? S 18:43 0:00 nginx:
> worker process
> root 23791 0.3 0.0 3976 1004 ? Ss 18:00 0:08 nginx:
> master process ./sbin/nginx
> [irteam at mvdev02.global ~]$ ps aux|grep nginx
> nobody 18361 135 0.0 4244 1236 ? R 18:43 0:01 nginx:
> worker process
> root 18408 0.0 0.0 8896 1604 pts/3 R+ 18:43 0:00 sudo
> ./sbin/nginx -s reload
> irteam 18410 0.0 0.0 5200 756 pts/6 R+ 18:43 0:00 grep
> nginx
> root 23791 0.3 0.0 3980 1004 ? Rs 18:00 0:08 nginx:
> master process ./sbin/nginx
>
> I use the default configuration which is generated when installed
> nginx-0.8.54
> so worker_process is 1 and add no third party module.
>
> Please help me.
> Thank you!
>
Here is explained:
http://nginx.org/en/docs/control.html#reconfiguration
wbr, Valentin V. Bartenev
More information about the nginx
mailing list