Apache - Apache mod server status, How to find apache server performance
Apache mod server status
To find the performace of apache server there are several linux commands in common to find the web server performance. Normally we use lsof, netstat, top, vmstat, sar, apachetop and other tools are used to find the performance of apache.mod_status is an wonderful apache module which is used to find the performance of apache or your web server. mod_status is built into Apache web server to get server status from a web browser in html format. With this module you can easily find out how well your server is preforming. All reports are generated in a html format, so that you can see and understand the performance of your webserver with this simple module. apachetop will process a single apache logfile, and show you what is happening with a particular virtual host. apachetop will not allow you to view two or three virtual hosts at the same time.
1) The number of worker serving requests
2) The number of idle worker
3) The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker. ExtendedStatus must be on to see this status.
4) A total number of accesses and byte count served. ExtendedStatus must be on to see this status.
5) The time the server was started/restarted and the time it has been running for
6) Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request. ExtendedStatus must be on to see this status.
7) The current percentage CPU used by each worker and in total by Apache. ExtendedStatus must be on to see this status.
8) The current hosts and requests being processed. ExtendedStatus must be on to see this status.
How to enable server status
<IfModule mod_status.c> # # Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Change the ".example.com" to match your domain to enable. # ExtendedStatus On <Location /server-status> SetHandler server-status Order Deny,Allow Deny from all Allow from w3calculator.com </Location> <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from w3calculator.com </Location> </IfModule>
After making the configuration changes.
# apachectl configtest
# service httpd restart
To view the server status or server information, type the server ip in your web browser.
# http://your-server-name/server-status
The topic on Apache - Apache mod server status is posted by - Math
Hope you have enjoyed, Apache - Apache mod server statusThanks for your time