nginx worker process hang,cpu load 100%
Maxim Dounin
mdounin at mdounin.ru
Mon Nov 14 10:19:40 UTC 2011
Hello!
On Sun, Nov 13, 2011 at 08:28:49PM -0500, Long Wan wrote:
> Hello Maxim,Thanks for your reply, I tried gdb as you tolde me , it
> reported something :
[...]
> (gdb) bt
> #0 ngx_http_upstream_get_round_robin_peer (pc=0x78166f0, data=<value
> optimized out>) at src/http/ngx_http_upstream_round_robin.c:413
> #1 0x000000000041a8fc in ngx_event_connect_peer (pc=0x78166f0) at
> src/event/ngx_event_connect.c:24
> #2 0x000000000043d1e8 in ngx_http_upstream_connect (r=0x7cf6310,
> u=0x78166e0) at src/http/ngx_http_upstream.c:1089
[...]
> (gdb) n
>
> there is no output when type 'n', should i recompile nginx with
> '--with-debug' configure option ?
This looks very similar to this problem, fixed in 1.1.1/1.0.7:
*) Bugfix: nginx hogged CPU if all servers in an upstream were marked as
"down".
Are you sure you see the same problem in 1.0.9?
Maxim Dounin
More information about the nginx
mailing list