Welcome! Log In Create A New Profile

Advanced

Re: nginx worker process hang,cpu load 100%

Maxim Dounin
November 14, 2011 05:20AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx worker process hang,cpu load 100%

Long Wan November 13, 2011 07:06AM

Re: nginx worker process hang,cpu load 100%

Maxim Dounin November 13, 2011 07:36AM

Re: nginx worker process hang,cpu load 100%

Long Wan November 13, 2011 08:28PM

Re: nginx worker process hang,cpu load 100%

Maxim Dounin November 14, 2011 05:20AM

Re: nginx worker process hang,cpu load 100%

Long Wan November 14, 2011 09:37AM

Re: nginx worker process hang,cpu load 100%

Maxim Dounin November 14, 2011 11:00AM

Re: nginx worker process hang,cpu load 100%

Long Wan November 14, 2011 08:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready