Apache server view performance status with mod_status configuration

by on January 28, 2007 · 4 comments· LAST UPDATED September 13, 2007

in , ,

Q. How do I view and verify Apache server performance status under Linux / UNIX operating system?

A. The Status module (mod_status) allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh.

The details given are:

* The number of children serving requests.
* The number of idle children.
* The status of each child, the number of requests that child has performed and the total number of bytes served by the child (*)
* A total number of accesses and byte count served (*).
* The time the server was started/restarted and the time it has been running for
* Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*).
* The current percentage CPU used by each child and in total by Apache (*).
* The current hosts and requests being processed (*).

Details marked "(*)" are only available with ExtendedStatus On.

Configure Apache mod_status

Open your httpd.conf file:
# vi httpd.conf
Append / modify (or uncomment) directives as follows:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 192.168.1.5
</Location>

Replace 192.168.1.5 with your workstation IP address. Save and close the file. Restart httpd server:
# /etc/init.d/httpd restart
For full status report type:
# /etc/init.d/httpd fullstatus

To view status report type url - http://your.com/server-status.

You can now access server statistics by using a Web browser to access the page http://your.server.name/server-status

References:

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 4 comments… read them below or add one }

1 Narasimha January 11, 2008 at 6:36 am

thanks for the answer really it solved my problem

Narsimha

Reply

2 Chaitanya October 16, 2012 at 11:16 am

Hi,
I am getting below error, even I have logged with root.
I have tried with service httpd restart
server-status page is showing fine but I want to see full status
/etc/init.d/httpd fullstatus
Authorization Required

This server could not verify that you are authorized to access the
document requested. Either you supplied the wrong credentials (e.g., bad
password), or your browser doesn’t understand how to supply the
credentials required.

————————————————————————–

Apache/2.2.3 (CentOS) Server at localhost Port 80
Thanks.

Reply

3 Chaitanya October 16, 2012 at 1:56 pm

Hi,
Earlier I have raised query as authentication issue after running /etc/init.d/httpd fullstatus from root
I have removed
AuthType basic
AuthName “Apache status”
AuthUserFile /home/secure/apasswords
Require valid-user
restart httpd and it worked
Then again I have configured AuthType basic…….
I just want to ask you when I checked http://www.apache.org/server-status,
it shows PID table and also Srv as 0-15…1-15…2-15 and so on
but in my server-status page it is not showing PID table and srv is showing as 0-0, 1-0, 2-0, so on.
ExtendedStatus On
Thanks

Reply

4 Chaitanya October 16, 2012 at 3:04 pm

Hi,
My OS is Centos 5.2 32 bit.
I mean I am getting Srv as
0-0
1-0
2-0
upto 8-0 not all entries
Thanks.

Reply

Leave a Comment

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: