nginx causes cpu burst problem when it is received USR1 signal by logrotate script

Igor Sysoev igor at sysoev.ru
Mon Oct 18 20:12:58 MSD 2010


On Mon, Oct 18, 2010 at 11:29:46AM -0400, hakutoitoi wrote:

> Igor, 
> Thank you for your advice.
> 
> I wanted to use kqueue and have configured using kqueue settings.
> /usr/local/conf/nginx/nginx.conf
> [code]
> events {
>     worker_connections  1024;
>     use kqueue;
>     multi_accept off;
> }
> [/code]
> 
> error log outputs using kqueue event method.
> /usr/local/logs/nginx/error
> [code]
> 2010/10/18 20:48:32 [notice] 77055#0: using the "kqueue" event method
> 2010/10/18 20:48:32 [notice] 77055#0: nginx/0.7.67
> [/code]
> 
> but, I also use Embedded Perl module.
> [code]
>  ./configure --with-http_perl_module
> [/code]
> 
> 
> configure with --with-http_perl_module
> [code]
> $ top
> 69650 nginx       1   4    0  2044K  1540K kqread 0   0:00  0.00% nginx
> [/code]
> 
> configure without --with-http_perl_module
> [code]
> $ top
> 77061 nginx       1  96    0  3828K  2124K select 0   0:00  0.00% nginx
> [/code]
> 
> as long as I use the Embedded Perl module, I can't fix this problem?

Probably, you mixed up:

 configure with --with-http_perl_module
          kqueue
 configure without --with-http_perl_module
          select

It seems that you use perl code that works with remote servers or databases
and this select is called by some perl module.


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list