This is possible using the module mod_status. Once this is enabled apache details can be viewed in the html page. Following information is viewable once this feature is enabled.
----------
The number of worker serving requests
The number of idle worker
The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*)
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 worker and in total by Apache (*)
The current hosts and requests being processed (*)
-----------
Now, a detailed information can be viewed once the feature called ExtendedStatus is enabled.
To achieve this, first check that staus module is enabled. This can be checked using the below command.
-----
httpd -M | grep status
Syntax OK
status_module (shared)
------
Once done, add the following configuration entry in the apache configuration file.
-----
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from all
#Allow from .example.com
</Location>
------
The “ExtendedStatus” settings adds more information to the statistics page like, CPU usage, request per second, total traffic, etc. To enable it, edit the the same httpd.conf file and search for the word “Extended” and Uncomment the line and set the status “On” for ExtendedStatus directive.
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On
http://your.server.name/server-status?refresh=N to refresh the page every N seconds.
Restart apache using the command,
#/etc/init.d/httpd graceful
----------
The number of worker serving requests
The number of idle worker
The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*)
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 worker and in total by Apache (*)
The current hosts and requests being processed (*)
-----------
Now, a detailed information can be viewed once the feature called ExtendedStatus is enabled.
To achieve this, first check that staus module is enabled. This can be checked using the below command.
-----
httpd -M | grep status
Syntax OK
status_module (shared)
------
Once done, add the following configuration entry in the apache configuration file.
-----
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from all
#Allow from .example.com
</Location>
------
The “ExtendedStatus” settings adds more information to the statistics page like, CPU usage, request per second, total traffic, etc. To enable it, edit the the same httpd.conf file and search for the word “Extended” and Uncomment the line and set the status “On” for ExtendedStatus directive.
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On
http://your.server.name/server-status?refresh=N to refresh the page every N seconds.
Restart apache using the command,
#/etc/init.d/httpd graceful