Hi, I have a webserver with apache. When I check 'ps aux' I can see that the
apache processes are using a few % of the cpu. See ps output below, where the
cpu usage of all apache processes are shown:
>
> linux:~# echo `ps aux | awk '/apache2/ {print $3}' | sort -r`
> 2.3 2.1 2.0 1.9 1.7 1.6 1.3 1.3 1.2 1.2 1.1 1.0 0.9 0.9 0.9 0.6 0.6 0.6 0.4
> 0.4 0.4 0.4 0.1 0.0 0.0
>
But, with the apache monitor zenpack, the cpu utilisation graph shows "avg:
0.04%, max: 0.12%". this is a machine with 1 single Xeon E5430 btw.
I verified that with `lynx 'http://<ip>/server-status'` mod_status returns
incorrect information.
I get:
>
> Current Time: Friday, 05-Jun-2009 09:46:38 CEST
> Restart Time: Sunday, 31-May-2009 06:39:48 CEST
> Parent Server Generation: 1
> Server uptime: 5 days 3 hours 6 minutes 49 seconds
> Total accesses: 4589102 - Total Traffic: 40.4 GB
> CPU Usage: u53.7 s49.73 cu0 cs0 - .0233% CPU load
> 10.4 requests/sec - 95.6 kB/second - 9.2 kB/request
> 27 requests currently being processed, 5 idle workers
>
> ...KC.KK_KK..WKKK_K_K_KKK._K..K..KK...KK...KKKK...K.............
> ......................K.........................................
> ................................................................
> ................................................................
>
> Scoreboard Key:
> "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
> "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
> "C" Closing connection, "L" Logging, "G" Gracefully finishing,
> "I" Idle cleanup of worker, "." Open slot with no current process
>
> Srv PID Acc M CPU SS Req Conn Child Slot Client
> VHost Request
> 0-1 - 0/0/118532 . 2.14 4 0 0.0 0.00 1004.98 ::1
> linux.drk.be GET / HTTP/1.0
> 1-1 - 0/0/118904 . 2.66 3 0 0.0 0.00 1085.79 ::1
> linux.drk.be GET / HTTP/1.0
> 2-1 - 0/0/114444 . 0.38 16 1054 0.0 0.00 954.95
> 92.69.54.174 drk4.drk.be GET /files/wevelgem/Vrije_tijd/kok.jpg HTTP/1.1
> 3-1 5896 12/37/115584 K 0.11 0 1 22.6 0.15 1197.24
> 194.121.97.146 drk4.drk.be GET
> /sites/all/themes/leiedal_theme/style-drk/img/home-hover.gi
> 4-1 5658 1/161/113932 C 2.54 0 381 0.0 1.08 1111.16
> 91.177.169.252 drk4.drk.be GET
> /vrije-tijd/bibliotheek/catalogus-bibliotheek HTTP/1.1
> 5-1 - 0/0/114211 . 0.73 5 0 0.0 0.00 935.89 ::1
> linux.drk.be GET / HTTP/1.0
> 6-1 5817 54/141/110683 K 2.96 4 2 919.9 1.11 861.66
> 81.83.95.157 drk4.drk.be GET
> /sites/all/themes/leiedal_theme/style-wevel...
> (...)
>
As you can see, the individual requests are said to using some cpu, however the
"CPU Usage" is remarkably (incorrectly?) low.
Anyone knows what's going on?
Thanks
Dieter
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=35652#35652
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users