Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 27141 invoked from network); 1 Jul 2008 12:55:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 12:55:10 -0000 Received: (qmail 20311 invoked by uid 500); 1 Jul 2008 12:55:00 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 20290 invoked by uid 500); 1 Jul 2008 12:55:00 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 20279 invoked by uid 99); 1 Jul 2008 12:55:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 05:55:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of c3@backfire.ca designates 74.52.221.235 as permitted sender) Received: from [74.52.221.235] (HELO smtp.backfire.ca) (74.52.221.235) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 12:54:08 +0000 Received: from cpe00104b328b63-cm0012c91e0d10.cpe.net.cable.rogers.com ([99.240.233.59] helo=[10.0.1.200]) by piston.backfire.ca with esmtpa (Exim 4.43) id 1KDfNJ-0003of-Hi for users@httpd.apache.org; Tue, 01 Jul 2008 08:54:25 -0400 Message-ID: <486A28F7.8030809@backfire.ca> Date: Tue, 01 Jul 2008 08:54:15 -0400 From: CR Reply-To: c3@backfire.ca User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Many defunct processes, cpu use with apache 2.0.52 I have Apache running about 5 vhosts, few of which really get much in the way of hits. If I run top, I see a lot of httpd processes, and each one is listed as using 1-5% of the CPU. They usually show up and disappear in a cycle. Here is a sample: top - 08:32:31 up 416 days, 8:14, 2 users, load average: 2.40, 2.36, 2.17 Tasks: 107 total, 5 running, 90 sleeping, 0 stopped, 12 zombie Cpu(s): 56.3% us, 21.5% sy, 0.0% ni, 22.2% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 1027556k total, 1010636k used, 16920k free, 304016k buffers Swap: 2040244k total, 31368k used, 2008876k free, 379012k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6223 www 16 0 0 0 0 Z 2.3 0.0 0:00.07 httpd 6254 www 25 0 0 0 0 Z 2.3 0.0 0:00.07 httpd 6256 www 17 0 0 0 0 Z 2.3 0.0 0:00.07 httpd 6253 www 25 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6255 www 25 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6257 www 19 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6258 www 17 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6259 www 16 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6260 www 21 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6261 www 18 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6262 www 22 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 6263 www 23 0 0 0 0 Z 2.0 0.0 0:00.06 httpd 18714 root 25 0 51196 28m 6628 R 1.0 2.8 400:42.72 httpd The part that bothers me is that top shows over 50% cpu use, yet this server is basically idle, and according to top itself, no other processes other than httpd are up to much. The loadavg is pretty much always at or above 1.9. If I continually ls -l my log files directory, they are not growing, so I assume the server isn't actually serving anything in that time. Some more info: Server version: Apache/2.0.52 Server built: Jul 14 2007 11:53:18 StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 I appreciate any help. To be honest, I didn't look very hard on the internet before posting this. My apologies if it has been covered hundreds of times already. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org