Apache performance monitoring Linux // IT Management Solutions

Apache performance monitoring Linux

Monitor Apache’s Performance with “mod_status” Module

Apache’s Status module (mod_status) allows a server administrator to find out how well his web-server is performing . All reports are generated in a html format and can be accessed via a graphical or text-based browser (terminal browser — lynx — ) . Accessing the html page produces an snapshot of Apache’s status (static content), using a compatible browser though, a mirror of live statistics can be displayed (made by automatically refresh) . While we can get the same information by checking Apache’s access log-files or by using regular Linux / UNIX commands such as lsof - netstat - top – vmstat (and others), it’s obvious how convenient our Apache monitoring tasks can be when all these information is gathered into one single access point . Although this module (mod_status) is installed by default on all Apache installations, it must be enabled from within Apache’s configuration file . Some of the details that are revealed by mod_status are listed below :

  • Averages giving the number of requests per second
  • The number of worker serving requests
  • The number of idle worker
  • The status of each worker, the number of requests that worker
  • The time the server was started/restarted and the time it has been running for
  • If mod_status is configured in extended-status, more details are displayed . Keep in mind though, the collection of extended status information can slow down the server.

Of course, we don’t want these information to be publicly accessible (hope it’s obvious), so we will configure Apache’s configuration file to serve mod_status statistics only to local requests (via a text-based browser — lynx — ) . The process of enabling and configuring of mod_status is done from within Apache’s configuration file . This article presents the configurations made on a CentOs 6 installation (/etc/httpd/conf/httpd.conf ), there shouldn’t be significant differences on other distributions though . Here follows the configuration process :

  • Comment out the line with the following directive :
    LoadModule status_module modules/mod_status.so
    If there is a “#” character in front of LoadModule, that means mod_status is disabled . Remove the # to enable mod_status
  • Still in httpd.conf, scroll down until you find the following section
    Just un-comment lines 922 up-to line 927 (by removing the # ), or duplicate these lines (as I did) . Notice the “Allow from” line, set it to 127.0.0.1 (this will restrict access only to localhost) .
    If you had created one or more virtual hosts, you’ll want to paste this configuration for the /server-status location into the default virtual host for every domain configured in Apache’s configuration file . Then you would need to change each “ ” line on every virtual host section . For instance,
See also:

You might also like

I'm guessing this is why flag response is slow

by -


Systems Administrators
craigslist is currently seeking a systems administrator to:
-assist in maintaining a stable platform that will continue
to scale as traffic increases and services are expanded;
-support a collection of 1,000 machines serving all functions of the
site;
-assist in designing and extending a configuration, deployment, and
monitoring framework;
-use and contribute to open source projects;
-manage and maintain multiple MySQL clusters;
-solve interesting tech issues at billion-page-view-per-day scale; and,
-assist in crafting a development environment and framework for
effective code testing and deployment

IOCELL Networks IOCELL Networks NetDISK 2TB Wireless Home Server
CE (IOCELL Networks)
  • The Center of Digital Home : Local Storage with standard protocols, No Host Software Required, Backup with timeline and encryption
  • Easy to use web photo album, Securely share pictures and videos with family with a few clicks, Media server allows photo viewing on TV, PS3, XBOX etc
  • Movies : Download service allows comfortable and fast downloads. Media server allows movie viewing on DLNA, TV, PS3, XBOX etc.
  • Remove Access
  • Email
  • Great Design
  • Super Fast speed

Senate panel OKs $51 billion for Commerce, Justice, Science  — FCW.com
One sticking point is the House's desire to limit funding for the National Strategy for Trusted Identities in Cyberspace, a plan designed to come up with a new system for managing identities online.

NETDISK Home Server 1TB HS-1000
CE (IOCELL Networks)
  • The Center of Digital Home : Local Storage with standard protocols, No Host Software Required, Backup with timeline and encryption
  • Easy to use web photo album, Securely share pictures and videos with family with a few clicks, Media server allows photo viewing on TV, PS3, XBOX etc
  • Movies : Download service allows comfortable and fast downloads. Media server allows movie viewing on DLNA, TV, PS3, XBOX etc.
  • Remove Access
  • Email
  • Great Design
  • Super Fast speed

Related Posts



Copyright © . All Rights Reserved