Main Content

Logging the performance of the Apache httpd web server

Archive - Originally posted on "The Horse's Mouth" - 2010-10-25 23:12:18 - Graham Ellis

Apache's mod_status allows you to take a look at how your Apache httpd server is running - you can see a snapshot of some basic stats of the server, and also the current status of each of the threads. There are two options that you can apply to the URL as you look at the page - a refresh option to cause the page to update every so many seconds, and an auto option which allows you to reformat the output suitable for automatic processing.

The Apache source download includes a Perl script that will collect the data from the auto report and log it to a file ... but the script is (currently) out of date as some of the field names have changed under it, and it could do with a lick of paint, or perhaps a complete rebuild.

OK ... I rebuilt it ;-) - see [here] - it's a new logger that records far more information, including some wider server stats too and that does mean that you should run it from the web server, not remotely, if you want useful information

Be default, mod_status is disabled. And even when enabled, you'll want to limit it to where it can access from ... it's fairly standard httpd configuration stuff. If you're not familiar with configurinbg httpd, we cover it on our Linux Web Server course, and if you need some training on Linux too it's included in Deploying LAMP.