Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2008 09:42:47 -0600
From:      Derek Ragona <derek@computinginnovations.com>
To:        Forrest Aldrich <forrie@forrie.com>, freebsd-questions@freebsd.org
Subject:   Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....
Message-ID:  <6.0.0.22.2.20080221094221.0253fe28@mail.computinginnovations.com>
In-Reply-To: <47BD8BE3.8070209@forrie.com>
References:  <47BD8BE3.8070209@forrie.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 08:34 AM 2/21/2008, Forrest Aldrich wrote:
>I recently recomplied the apache20 port (updated) with no compile-time 
>changes.  Since that time, I noticed it was hogging 98% of the CPU and 
>hanging.  I adjusted the various Max/Min server levels and that seemed to 
>fix it - except at midnight when the logs are rotated and the server is 
>sent a HUP signal.  When that happens, all the processes die except one 
>and it hangs at 90% CPU.  I kill it off, restart it manually and it 
>behaves fine.
>
>Here's a recent output of "top" :
>
>PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
>94711 www         1 117    0 41036K 13852K RUN    0   1:43 98.69% httpd
>
>The only thing that has changed on the system is an upgrade from MySQL-4.1 
>to MySQL-5.1, which I wouldn't expect httpd to be affected by, but I could 
>be wrong.  To be sure, I recompiled it, PHP and any dependencies that PHP 
>has, but I'm still seeing the same result.
>
>I tried compiling MySQL-5.1 with and without pthreads and see the same CPU 
>consumption issue.
>
>I wonder if I've hit a bug or if I've possibly messed something up (as 
>careful as I've been anyway).
>
>
>
>Thanks,
>
>Forrest

What is showing in the apache logs when this happens?

         -Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20080221094221.0253fe28>