Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 21:51:08 -0600
From:      "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>
To:        "Dikshie" <dikshie@ppk.itb.ac.id>, <freebsd-stable@FreeBSD.ORG>
Subject:   Re: httpd cpu states 98%
Message-ID:  <007501c295c8$391dfe60$fa00a8c0@DaleCoportable>
References:  <20021127032656.GA36350@ppk.itb.ac.id>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Dikshie" <dikshie@ppk.itb.ac.id>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007501c295c8$391dfe60$fa00a8c0>