From owner-freebsd-questions@FreeBSD.ORG Thu Feb 21 18:37:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F42E16A401 for ; Thu, 21 Feb 2008 18:37:32 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 1A6D513C455 for ; Thu, 21 Feb 2008 18:37:31 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.13.8) with ESMTP id m1LIb6PG043353; Thu, 21 Feb 2008 12:37:06 -0600 (CST) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080221123805.0252b0b8@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 21 Feb 2008 12:39:01 -0600 To: Forrest Aldrich From: Derek Ragona In-Reply-To: <47BDBB92.4070505@forrie.com> References: <47BD8BE3.8070209@forrie.com> <6.0.0.22.2.20080221094221.0253fe28@mail.computinginnovations.com> <47BDBB92.4070505@forrie.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 18:37:32 -0000 At 11:57 AM 2/21/2008, Forrest Aldrich wrote: >Derek Ragona wrote: >>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 > >The only thing I see are multiple lines of these errors in error_log: > >[Thu Feb 21 00:00:12 2008] [error] child process 63633 still did not exit, >sending a SIGKILL >[Thu Feb 21 00:00:12 2008] [error] child process 63634 still did not exit, >sending a SIGKILL >[Thu Feb 21 00:00:12 2008] [error] child process 63635 still did not exit, >sending a SIGKILL >[Thu Feb 21 00:00:12 2008] [error] child process 63636 still did not exit, >sending a SIGKILL >[Thu Feb 21 00:00:12 2008] [error] child process 63637 still did not exit, >sending a SIGKILL >[Thu Feb 21 00:00:12 2008] [error] child process 63983 still did not exit, >sending a SIGKILL >[Thu Feb 21 00:00:12 2008] [error] child process 64048 still did not exit, >sending a SIGKILL > > >Which is correct, as the process is not exiting. For some reason it's >hanging. The old binary did not do this. > >I could try another system update today (make/build/install world and >recompile the apache executable and dependencies) to see if this solves >the problem... > > >Thanks, > >Forrest I would try to see if there's an update, otherwise you might need to post a bug report to apache. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.