Welcome! Log In Create A New Profile

Advanced

[NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Jérôme Loyet
April 01, 2011 05:44AM
Hello,

I had an issue last night with a 0.8.54 nginx instance. Around 1AM, a HUP
signal is sent to log rotation. This nginx instance is set up as a reverse
proxy to an apache/php and it does some cache. Here is the proxy_cache
related conf I've set up.

proxy_cache_path /CACHE levels=1:2:2 keys_zone=cache:256m inactive=1d
max_size=20g;
proxy_cache cache;

Last night, the cache process manager has restarted well, but it has
consumed all CPU available on the server. Moreover, the SAR command
indicates that it did not seek, read or write on the disks (as the disk
usage remains almost null). Our exploitation team had to restart nginx 40
minutes later and it solves the problem.

Has someone already experience such an issue ? Do you know why this could
happened ?

Thx you
++ Jerome

PS: here is the related error_log:

2011/04/01 01:04:55 [notice] 25206#0: signal 1 (SIGHUP) received,
reconfiguring
2011/04/01 01:04:55 [notice] 25206#0: reconfiguring
2011/04/01 01:04:55 [notice] 25206#0: using the "epoll" event method
2011/04/01 01:04:55 [notice] 25206#0: start worker processes
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10450
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10451
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10452
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10453
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10454
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10455
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10456
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10457
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10458
2011/04/01 01:04:55 [notice] 25206#0: start worker process 10459
2011/04/01 01:04:55 [notice] 25206#0: start cache manager process 10460
2011/04/01 01:04:55 [notice] 25206#0: signal 17 (SIGCHLD) received
2011/04/01 01:04:55 [notice] 25206#0: worker process 7164 exited with code 0
2011/04/01 01:04:55 [notice] 25206#0: worker process 7166 exited with code 0
2011/04/01 01:04:55 [notice] 25206#0: worker process 30018 exited with code
0
2011/04/01 01:04:55 [notice] 25206#0: signal 17 (SIGCHLD) received
2011/04/01 01:04:55 [notice] 25206#0: worker process 7168 exited with code 0
2011/04/01 01:04:55 [notice] 25206#0: worker process 7170 exited with code 0
2011/04/01 01:04:55 [notice] 25206#0: worker process 7171 exited with code 0
2011/04/01 01:04:56 [notice] 25206#0: signal 29 (SIGIO) received
2011/04/01 01:04:56 [notice] 25206#0: signal 29 (SIGIO) received
2011/04/01 01:05:26 [notice] 25206#0: signal 17 (SIGCHLD) received
2011/04/01 01:05:26 [notice] 25206#0: worker process 7165 exited with code 0
2011/04/01 01:05:26 [notice] 25206#0: signal 29 (SIGIO) received
2011/04/01 01:45:55 [notice] 25206#0: signal 15 (SIGTERM) received, exiting
2011/04/01 01:45:55 [notice] 25206#0: signal 14 (SIGALRM) received
2011/04/01 01:45:55 [notice] 25206#0: signal 14 (SIGALRM) received
....
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

[NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Jérôme Loyet April 01, 2011 05:44AM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Maxim Dounin April 01, 2011 05:58AM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Jérôme Loyet April 01, 2011 06:08AM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Srebrenko Šehić April 05, 2011 01:46PM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

SplitIce April 06, 2011 06:04AM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Srebrenko Šehić April 06, 2011 11:58AM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Maxim Dounin April 06, 2011 02:20PM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Srebrenko Šehić April 07, 2011 03:38PM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

omega8cc May 19, 2011 03:51PM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

omega8cc May 19, 2011 04:54PM

Re: [NGINX] cache process manager consume a lot of CPU at reload and has to be restarted

Maxim Dounin May 20, 2011 05:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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