cpu spike on HUP

Igor Sysoev igor at sysoev.ru
Sat Oct 30 10:07:46 MSD 2010


On Fri, Oct 29, 2010 at 02:02:29PM -0700, Gary Barrueto wrote:

> On 10/29/2010 01:02 AM, Igor Sysoev wrote:
> > On Thu, Oct 28, 2010 at 04:55:40PM -0700, Gary Barrueto wrote:
> >
> >> Whenever nginx is sent a HUP signal, the cpu jumps to 100% then slowly
> >> drops until all the nginx worker processes that are trying to shutting
> >> down are done. Those nginx process usually take a while to shutdown
> >> since we're serving very large files (200MB-2GB). Any ideas why this is
> >> happening?
> >>
> >>   From the strace below it looks like it all in sendfile but I wouldn't
> >> think that would so cpu intense.
> > What kind of CPU is used in these moments: system or user according to top ?
> >
> 
> I just sent a HUP signal to nginx and the cpu shot up to 55% user and 
> another 10% sys.

Do you send a HUP signal to master process only or to worker processes too ?


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



More information about the nginx mailing list