Welcome! Log In Create A New Profile

Advanced

Re: Worker processes not shutting down

February 12, 2013 02:01AM
Hi,

I have the same issue and would like to find a solution. This is in production so couple of 3rd party module compiled. This happens when we reload the nginx config.

# ps -ef | grep nginx
root 10163 1 0 Feb08 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 14434 10163 0 06:39 ? 00:00:00 nginx: worker process is shutting down
nginx 15664 10163 0 06:40 ? 00:00:00 nginx: worker process
nginx 15665 10163 0 06:40 ? 00:00:00 nginx: worker process
nginx 15666 10163 0 06:40 ? 00:00:00 nginx: worker process
nginx 15667 10163 0 06:40 ? 00:00:00 nginx: worker process
root 17489 9311 0 06:43 pts/3 00:00:00 grep nginx
nginx 23887 10163 0 Feb08 ? 00:00:12 nginx: worker process is shutting down
nginx 23888 10163 0 Feb08 ? 00:00:08 nginx: worker process is shutting down
nginx 23892 10163 0 Feb08 ? 00:00:20 nginx: worker process is shutting down
nginx 32240 10163 0 Feb11 ? 00:00:15 nginx: worker process is shutting down
nginx 32241 10163 0 Feb11 ? 00:00:16 nginx: worker process is shutting down
nginx 32244 10163 0 Feb11 ? 00:00:13 nginx: worker process is shutting down
nginx 32245 10163 0 Feb11 ? 00:00:19 nginx: worker process is shutting down

# pstack 32245
#0 0x00000039dced4863 in __epoll_wait_nocancel () from /lib64/libc.so.6
#1 0x0000000000425e57 in ngx_epoll_process_events ()
#2 0x000000000041cc2e in ngx_process_events_and_timers ()
#3 0x0000000000423d7d in ngx_worker_process_cycle ()
#4 0x000000000042236d in ngx_spawn_process ()
#5 0x00000000004232cc in ngx_start_worker_processes ()
#6 0x0000000000424a9e in ngx_master_process_cycle ()
#7 0x00000000004069fd in main ()

]# pstack 32244
#0 0x00000039dced4863 in __epoll_wait_nocancel () from /lib64/libc.so.6
#1 0x0000000000425e57 in ngx_epoll_process_events ()
#2 0x000000000041cc2e in ngx_process_events_and_timers ()
#3 0x0000000000423d7d in ngx_worker_process_cycle ()
#4 0x000000000042236d in ngx_spawn_process ()
#5 0x00000000004232cc in ngx_start_worker_processes ()
#6 0x0000000000424a9e in ngx_master_process_cycle ()
#7 0x00000000004069fd in main ()

# pstack 32241
#0 0x00000039dced4863 in __epoll_wait_nocancel () from /lib64/libc.so.6
#1 0x0000000000425e57 in ngx_epoll_process_events ()
#2 0x000000000041cc2e in ngx_process_events_and_timers ()
#3 0x0000000000423d7d in ngx_worker_process_cycle ()
#4 0x000000000042236d in ngx_spawn_process ()
#5 0x00000000004232cc in ngx_start_worker_processes ()
#6 0x0000000000424a9e in ngx_master_process_cycle ()
#7 0x00000000004069fd in main ()

# strace -p 32244
Process 32244 attached - interrupt to quit
epoll_wait(21,


# strace -p 32241
Process 32241 attached - interrupt to quit
epoll_wait(19,

# strace -p 32245
Process 32245 attached - interrupt to quit
epoll_wait(24, {{EPOLLIN|EPOLLOUT, {u32=412706096, u64=412706096}}}, 512, 9351728) = 1
recvfrom(447, "HTTP/1.1 200 OK\r\nDate: Tue, 12 F"..., 2048, 0, NULL, NULL) = 611
write(444, "\27\3\1\2\200\224T\204\354\353w\344+\267c9\314\270\30I\216\200\314\354\376\3\323\202\332(:\323"..., 645) = 645
recvfrom(447, 0x1a0e98f0, 2048, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(24, {{EPOLLIN|EPOLLOUT, {u32=412730864, u64=412730864}}}, 512, 9351656) = 1
read(443, "\27\3\1\0 \t\355\205\202\267>\274\240\324qR\305\334\36\223\355\0251\31[A\366\225~\217\220\252"..., 34821) = 698
read(443, 0x1a0d0600, 34821) = -1 EAGAIN (Resource temporarily unavailable)
sendto(446, "GET /CometServer/cometd/connect?"..., 621, 0, NULL, 0) = 621
epoll_wait(24, {{EPOLLIN|EPOLLOUT, {u32=412783472, u64=412783472}}}, 512, 9351648) = 1
recvfrom(446, "HTTP/1.1 200 OK\r\nDate: Tue, 12 F"..., 1024, 0, NULL, NULL) = 1024
write(443, "\27\3\1\4 +T@\376\260\306q\vrq\1\240T\244\377\227\23g\5\340\262FYs:]o"..., 1061) = 1061
recvfrom(446, "|TRT\\\"},\\\"DAT\\\":{\\\"DQ\\\":[\\\"PFX|1"..., 1024, 0, NULL, NULL) = 1024
write(443, "\27\3\1\4 \262\202\372V\326\251S\252?\353\266\307\272\257\240\306\247\205\345\307\320L\31W\223\337h"..., 1061) = 1061
recvfrom(446, "\":\"{\\\"RT\\\":\\\"4\\\",\\\"HED\\\":{\\\"DQ\\\""..., 1024, 0, NULL, NULL) = 1024
write(443, "\27\3\1\4 9(\241\235\377\350\220\4\320&\25\34|;#\215\212\220\"\263\vFz\350\360ks"..., 1061) = 1061
recvfrom(446, "a\":{\"scope\":\"public\",\"server\":\"P"..., 1024, 0, NULL, NULL) = 1024

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)

# uname -rop
2.6.18-274.el5 x86_64 GNU/Linux

# nginx -V
nginx version: nginx/1.2.6
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
TLS SNI support disabled
configure arguments: --prefix=/etc/nginx/ --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-file-aio --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-debug --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/ngx_devel_kit-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/echo-nginx-module-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/set-misc-nginx-module-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/srcache-nginx-module-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/nginx-sticky-module-1.1 --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/nginx_upstream_check_module-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/memc-nginx-module-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/nginx_cross_origin_module-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/nginx_tcp_proxy_module-master --add-module=/usr/local/hirantha/rpmbuild/BUILD/nginx-1.2.6/contrib/naxsi-core-0.48/naxsi_src --with-cc-opt='-O2 -g -m64 -mtune=generic'

Thanks in advance.
SubjectAuthorPosted

Worker processes not shutting down

runesoerensenJanuary 24, 2012 03:42PM

Re: Worker processes not shutting down

runesoerensenJanuary 24, 2012 04:17PM

Re: Worker processes not shutting down

Maxim DouninJanuary 25, 2012 08:48AM

Re: Worker processes not shutting down

runesoerensenOctober 24, 2012 01:02AM

Re: Worker processes not shutting down

agentzhOctober 24, 2012 06:14PM

Re: Worker processes not shutting down

n1xmanFebruary 12, 2013 02:01AM

Re: Worker processes not shutting down

igorhmmSeptember 19, 2014 10:13AM

Re: Worker processes not shutting down

B.R.September 19, 2014 10:58AM

Re: Worker processes not shutting down

igorhmmSeptember 19, 2014 01:27PM

Re: Worker processes not shutting down

B.R.September 19, 2014 01:48PM

Re: Worker processes not shutting down

igorhmmSeptember 19, 2014 03:50PM

Re: Worker processes not shutting down

B.R.September 19, 2014 04:32PM

Re: Worker processes not shutting down

oscaretu .September 20, 2014 04:18AM

Re: Worker processes not shutting down

dewanggabaSeptember 20, 2014 04:20AM

Re: Worker processes not shutting down

igorhmmSeptember 23, 2014 07:26AM

Re: Worker processes not shutting down

Yichun Zhang (agentzh)September 23, 2014 06:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 180 on December 21, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready