nginx: worker process is shutting down

Christos Chatzaras chris at cretaforce.gr
Thu Oct 22 13:27:05 UTC 2015


Every time I do "nginx -s reload" I see a process:

nginx: worker process is shutting down

This process never stops even after a long time.

Any idea what cause this issue?

From truss (similar to strace):

kevent(13,{},0,{},512,{0.602000000 })            = 0 (0x0)
kevent(13,{},0,{},512,{3.000000000 })            = 0 (0x0)
kevent(13,{},0,{0xc,EVFILT_READ,0x0,0,0x20,0x802530068},512,{3.000000000 }) = 1 (0x1)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffffffff,0x0) = 32 (0x20)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffff,0x0) ERR#35 'Resource temporarily unavailable'
kevent(13,{},0,{0xc,EVFILT_READ,0x0,0,0x20,0x802530068},512,{1.287000000 }) = 1 (0x1)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffffffff,0x7fffffffe678) = 32 (0x20)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffff,0x7fffffffe678) ERR#35 'Resource temporarily unavailable'
kevent(13,{},0,{0xc,EVFILT_READ,0x0,0,0x20,0x802530068},512,{1.286000000 }) = 1 (0x1)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffffffff,0x7fffffffe678) = 32 (0x20)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffffffff,0x7fffffffe678) ERR#35 'Resource temporarily unavailable'
getpid()                                         = 9230 (0x240e)
__sysctl(0x7fffffffe690,0x4,0x0,0x0,0x802451000,0x27) = 0 (0x0)
close(5)                                         = 0 (0x0)
kevent(13,{},0,{0xc,EVFILT_READ,0x0,0,0x20,0x802530068},512,{1.180000000 }) = 1 (0x1)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffffffff,0x7fffffffe678) = 32 (0x20)
close(4)                                         = 0 (0x0)
recvmsg(0xc,0x7fffffffe5a0,0x0,0x80248d068,0xffffffff,0x7fffffffe678) ERR#35 'Resource temporarily unavailable'
kevent(13,{},0,{},512,{1.180000000 })            = 0 (0x0)
kevent(13,{},0,{},512,{3.000000000 })            = 0 (0x0)
kevent(13,{},0,{},512,{3.000000000 })            = 0 (0x0)
kevent(13,{},0,{},512,{3.000000000 })            = 0 (0x0)
kevent(13,{},0,{},512,{3.000000000 })            = 0 (0x0)
kevent(13,{},0,{},512,{3.000000000 })            = 0 (0x0)
kevent(13,{},0,{},512,{3.000000000 })            = 0 (0x0)                                                    

It keeps looping with: kevent(13,{},0,{},512,{3.000000000 }) = 0 (0x0)

And lsof:

nginx      9230     www  cwd     VDIR              0,142                512   823526 /usr/ports/www/nginx-devel
nginx      9230     www  rtd     VDIR              0,138                512        2 /
nginx      9230     www  txt     VREG              0,142             774696   160619 /usr (/dev/mirror/gm0p6)
nginx      9230     www  txt     VREG              0,138             128312       20 /libexec/ld-elf.so.1
nginx      9230     www  txt     VREG              0,138             102472   240934 /lib/libthr.so.3
nginx      9230     www  txt     VREG              0,138              62040   240920 /lib/libcrypt.so.5
nginx      9230     www  txt     VREG              0,142             480888  1766349 /usr/local/lib/libpcre.so.1.2.5
nginx      9230     www  txt     VREG              0,142             529223  1765851 /usr/local/lib/libssl.so.8
nginx      9230     www  txt     VREG              0,142            2716684  1765720 /usr/local/lib/libcrypto.so.8
nginx      9230     www  txt     VREG              0,138              89584   240937 /lib/libz.so.6
nginx      9230     www  txt     VREG              0,142             279168  1766158 /usr/local/lib/libGeoIP.so.1.6.6
nginx      9230     www  txt     VREG              0,138            1642936   240860 /lib/libc.so.7
nginx      9230     www    0u    VCHR               0,11                0t0       11 /dev/null
nginx      9230     www    1u    VCHR               0,11                0t0       11 /dev/null
nginx      9230     www    2u    VCHR              0,169               0t45      169 /dev/pts/0
nginx      9230     www    3u    unix 0xfffff80069985000                0t0          ->0xfffff800698e2828
nginx      9230     www    6u    unix 0xfffff8017f141000                0t0          ->0xfffff8017f141570
nginx      9230     www    7u    unix 0xfffff8017f1662b8                0t0          ->0xfffff80069271000
nginx      9230     www   11w    VREG              0,141               1146  1444622 /var (/dev/mirror/gm0p5)
nginx      9230     www   12u    unix 0xfffff8017f26a570                0t0          ->0xfffff80069987000
nginx      9230     www   13u  KQUEUE 0xfffff8000e5b4500                             count=0, state=0x2                                                                     


More information about the nginx mailing list