From owner-freebsd-stable Tue Nov 26 19:57:17 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC26A37B401 for ; Tue, 26 Nov 2002 19:57:15 -0800 (PST) Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CBCA43EC5 for ; Tue, 26 Nov 2002 19:57:11 -0800 (PST) (envelope-from kdk@daleco.biz) Received: from DaleCoportable [12.145.226.245] by mail.gbronline.com (SMTPD32-7.13) id A20AD27024A; Tue, 26 Nov 2002 21:54:50 -0600 Message-ID: <007501c295c8$391dfe60$fa00a8c0@DaleCoportable> From: "Kevin D. Kinsey, DaleCo, S.P." To: "Dikshie" , References: <20021127032656.GA36350@ppk.itb.ac.id> Subject: Re: httpd cpu states 98% Date: Tue, 26 Nov 2002 21:51:08 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Dikshie" Subject: httpd cpu states 98% > Hello, > I use FreeBSD-4.7-STABLE and Apache-2.0.43 as web server. > (Pentium III 800 MHz and 256 SDRAM) > > last pid: 36345; load averages: 1.01, 1.00, 1.00 up 3+13:50:12 10:22:20 > 60 processes: 2 running, 58 sleeping > CPU states: 98.1% user, 0.0% nice, 0.0% system, 1.9% interrupt, 0.0% idle > Mem: 106M Active, 92M Inact, 30M Wired, 18M Cache, 7488K Buf, 1040K Free > Swap: 512M Total, 6860K Used, 505M Free, 1% Inuse > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 31158 www 54 0 11372K 8944K RUN 680:29 98.78% 98.78% httpd > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ > > > 90 root 2 0 2112K 884K select 1:55 0.00% 0.00% ospfd > 225 postfix 2 0 1140K 696K select 1:16 0.00% 0.00% qmgr > > > why does my httpd using cpu so high ? Ummmmm....because it's thinking hard? Seriously, how many children have been spawned? How many sites are being served? How much traffic? What is in your httpd logs (access, error, etc.)? Does this server execute scripts? Who writes them? In what language? Are they protected against variable poisoning and other types of attacks? If you're serving static HTML pages, this would be *amazing*, but if you're doing something more complex, then it's time to *hunt* for a reason..... My $.02 (adjust downward for inflation...) Kevin Kinsey DaleCo, S.P. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message