From owner-freebsd-questions@FreeBSD.ORG Thu Feb 21 14:57:59 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 6EB0716A408 for ; Thu, 21 Feb 2008 14:57:59 +0000 (UTC) (envelope-from forrie@forrie.com) Received: from forrie.com (demon.dce.harvard.edu [140.247.198.85]) by mx1.freebsd.org (Postfix) with ESMTP id 39A4113C448 for ; Thu, 21 Feb 2008 14:57:58 +0000 (UTC) (envelope-from forrie@forrie.com) Received: from forrest-aldrichs-macbook-pro.local (dsl092-075-097.bos1.dsl.speakeasy.net [66.92.75.97]) (authenticated bits=0) by forrie.com (8.14.2/8.13.8) with ESMTP id m1LEYBuT076490 for ; Thu, 21 Feb 2008 09:34:16 -0500 (EST) (envelope-from forrie@forrie.com) Message-ID: <47BD8BE3.8070209@forrie.com> Date: Thu, 21 Feb 2008 09:34:11 -0500 From: Forrest Aldrich User-Agent: Thunderbird 2.0.0.13pre (Macintosh/20080220) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92/5915/Thu Feb 21 07:36:26 2008 on mail.forrie.com X-Virus-Status: Clean Subject: 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 14:57:59 -0000 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