Home arrow Latest Tutorials arrow Debuging Apache Performance
Debuging Apache Performance PDF
Friday, 21 December 2007
n easy way to debug Apache performance is by enabling Status Support from Apache Web Server. To do that, add the following lines to your httpd.conf file:

ExtendedStatus on

<Location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from all
</Location>
Then, restart apache, and you will be able to access a status page on the following link (asuming your configured domain is example.com):

http://www.example.com/status-server

You will get something like this:

Apache Server Status for www.example.com

Server Version: Apache/2.2.4 (FreeBSD) mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.3 with Suhosin-Patch
Server Built: Jul 23 2007 19:40:53

Current Time: Saturday, 22-Dec-2007 05:04:28 EET
Restart Time: Saturday, 22-Dec-2007 05:03:23 EET
Parent Server Generation: 2
Server uptime: 1 minute 5 seconds
Total accesses: 48 - Total Traffic: 159 kB
CPU Usage: u.046875 s.0234375 cu0 cs0 - .108% CPU load
.738 requests/sec - 2504 B/second - 3392 B/request
1 requests currently being processed, 6 idle workers
______W.........................................................
................................................................
................................................................
................................................................

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

SrvPIDAccMCPU SSReqConnChildSlotClientVHostRequest
0-2226710/4/4_ 0.02900.00.000.00 86.X.Y.Zwebmail.example.comGET /freebsd-5x-i586-mail-213/versions.dat HTTP/1.1
1-2226720/2/2_ 0.012200.00.000.00 66.A.B.Cexample.comGET /index.html HTTP/1.1


SrvChild Server number - generation
PIDOS process ID
AccNumber of accesses this connection / this child / this slot
MMode of operation
CPUCPU usage, number of seconds
SSSeconds since beginning of most recent request
ReqMilliseconds required to process most recent request
ConnKilobytes transferred this connection
ChildMegabytes transferred this child
SlotTotal megabytes transferred this slot


 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?