Monday 30 December 2013

ApacheHttpServers-server-status

ApacheHttpServers-server-status


Apache's http server's 'server-status' page help us a lot to dig more information about that http server.

At Ubuntu you can find this module at:

/etc/apache2/mods-available$ ls -l status*
-rw-r--r-- 1 root root 753 Feb  7  2012 status.conf
-rw-r--r-- 1 root root  64 Feb  7  2012 status.load

And you have to enable the same, type the following. 
[ NOTE: If you see this file under '/etc/apache2/mods-enabled' then no need to type the following command. ]

sudo /usr/sbin/a2enmod status

Then create a 'VirtualHost' to access the 'server-status' page:

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost
</Location>

# You can do allow from the trusted network. 


After configuring, restart the http server.

then: Type the following at your web browser:

http://<YourWebServer>/server-status

Now, you will find the details about your web server.


#######

Current Time: Monday, 30-Dec-2013 12:53:56 UTC
Restart Time: Monday, 30-Dec-2013 11:32:37 UTC
Parent Server Generation: 0
Server uptime: 1 hour 21 minutes 18 seconds
Total accesses: 62355 - Total Traffic: 95.6 MB
CPU Usage: u2091.74 s878.35 cu0 cs0 - 60.9% CPU load
12.8 requests/sec - 20.1 kB/second - 1606 B/request
1 requests currently being processed, 29 idle workers


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



Srv Child Server number - generation
PID OS process ID
Acc Number of accesses this connection / this child / this slot
M Mode of operation
CPU CPU usage, number of seconds
SS Seconds since beginning of most recent request
Req Milliseconds required to process most recent request
Conn Kilobytes transferred this connection
Child Megabytes transferred this child
Slot Total megabytes transferred this slot



SSL/TLS Session Cache Status:
cache type: SHMCB, shared memory: 512000 bytes, current sessions: 0
subcaches: 32, indexes per subcache: 133
index usage: 0%, cache usage: 0%
total sessions stored since starting: 0
total sessions expired since starting: 0
total (pre-expiry) sessions scrolled out of the cache: 0
total retrieves since starting: 0 hit, 0 miss
total removes since starting: 0 hit, 0 miss


#########



Ref Sites:

http://httpd.apache.org/docs/2.0/mod/mod_status.html

http://articles.slicehost.com/2010/3/26/enabling-and-using-apache-s-mod_status-on-ubuntu


No comments:

Post a Comment