Welcome! Log In Create A New Profile

Advanced

Re: After reload, nginx's CPU usage jumped to 100 percent(backtrace provided)

杨镭
July 13, 2011 04:22AM
Hi,

we didn't take core dump. If we can reproduce the problem, I'll bring you
the p *fcn content.

On Tue, Jul 12, 2011 at 10:08 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Tue, Jul 12, 2011 at 09:31:07PM +0800, 杨镭 wrote:
>
> > After reload, all the worker processes, including newly forked ones, goes
> > straight to 100% CPU:
>
> [...]
>
> > Also, we took backtrace for cache manger process:
> >
> >
> > Attaching to process 17306
> > ngx_http_file_cache_expire (data=<value optimized out>) at
> > src/http/ngx_http_file_cache.c:1096
> > 1096 if (fcn->count == 0) {
> > (gdb) bt
> > #0 ngx_http_file_cache_expire (data=<value optimized out>) at
> > src/http/ngx_http_file_cache.c:1096
>
> Could you please show
>
> p *fcn
>
> ?
>
> I think I see the problem, but just to make sure.
>
> If you are able to reproduce the problem please try the following
> patch:
>
> diff --git a/src/http/ngx_http_file_cache.c
> b/src/http/ngx_http_file_cache.c
> --- a/src/http/ngx_http_file_cache.c
> +++ b/src/http/ngx_http_file_cache.c
> @@ -1099,7 +1099,8 @@ ngx_http_file_cache_expire(ngx_http_file
> }
>
> if (fcn->deleting) {
> - continue;
> + wait = 1;
> + break;
> }
>
> p = ngx_hex_dump(key, (u_char *) &fcn->node.key,
>
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



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

After reload, nginx's CPU usage jumped to 100 percent(backtrace provided)

杨镭 July 12, 2011 09:32AM

Re: After reload, nginx's CPU usage jumped to 100 percent(backtrace provided)

Maxim Dounin July 12, 2011 10:10AM

Re: After reload, nginx's CPU usage jumped to 100 percent(backtrace provided)

杨镭 July 13, 2011 04:22AM

Re: After reload, nginx's CPU usage jumped to 100 percent(backtrace provided)

杨镭 July 19, 2011 02:18AM

Re: After reload, nginx's CPU usage jumped to 100 percent(backtrace provided)

Maxim Dounin July 19, 2011 02:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
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