Welcome! Log In Create A New Profile

Advanced

When reloading nginx-0.8.54, number of workers increases

May 24, 2012 06:10AM
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@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@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@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@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!
Subject Author Posted

When reloading nginx-0.8.54, number of workers increases

zealot83 May 24, 2012 06:10AM

Re: When reloading nginx-0.8.54, number of workers increases

Maxim Dounin May 24, 2012 06:34AM

Re: When reloading nginx-0.8.54, number of workers increases

Valentin V. Bartenev May 24, 2012 07:18AM

Re: When reloading nginx-0.8.54, number of workers increases

zealot83 May 24, 2012 07:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready