From owner-freebsd-questions@FreeBSD.ORG Thu Feb 21 19:52:37 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 EDC6F16A40E for ; Thu, 21 Feb 2008 19:52:37 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id A935B13C461 for ; Thu, 21 Feb 2008 19:52:37 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id B562D1CC8B; Thu, 21 Feb 2008 10:52:36 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Thu, 21 Feb 2008 20:52:32 +0100 User-Agent: KMail/1.9.7 References: <47BD8BE3.8070209@forrie.com> <6.0.0.22.2.20080221094221.0253fe28@mail.computinginnovations.com> <47BDBB92.4070505@forrie.com> In-Reply-To: <47BDBB92.4070505@forrie.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802212052.34336.fbsd.questions@rachie.is-a-geek.net> Cc: Forrest Aldrich , Derek Ragona 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 19:52:38 -0000 On Thursday 21 February 2008 18:57:38 Forrest Aldrich wrote: > >> 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 > >> Is this memory rising? If the below suggestion doesn't narrow down the problem, could you look into ktrace(1) and see what it's doing all this time? You could also try to narrow down the problem, by looking at what request was served last by that child. Enable mod_info for that. > 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... I doubt it would help. I've seen this lots of times when the php module exit code is hanging. At the same time, the php CLI binary should be crashing on exit. Re-order your modules, there's a thread about it in the archives. If it wasn't for that useless piece of crap ht-dig, I'd have a link for you. :p Anyway, to test if it's this problem, run php -v and see if you get coredump. If you don't have CLI available, you could try disabling php in apache and see if the problem persists. -- Mel