Apache

User rating:
4.3 (3 ratings)

1. Set Up Apache Monitoring

To monitor Apache using LoadUI mod_status module must be enabled. This module is available as part of a standard installation of either the Apache 1.x or Apache 2.x packages and configuration is very straightforward.

To enable status reports only for somedomain.com domain, the following code must be added to the configuration file httpd.conf:

apacheConf

To enable extended counters, the following line must be added to httpd.conf:

ExtendedStatus On

Extended status is available from Apache 1.3.2 and higher.

2. LoadUI setup

When defining new Apache monitor in LoadUI, user must specify server host (in server definition screen), port (80 is default) and optionally check ‘Use https?’ if server stats are accessed over HTTPS. User must click Test connection to verify connection and retrieve the list of all available counters. Make sure that no firewall is blocking the port used in between the server and LoadUI.

3. Available statistics

Once connected to Apache server, following counters are available:

1. Basic.

  • % Busy Workers - Percentage of worker serving requests relative to total number of workers (Busy + Idle)
  • Busy Workers - Worker serving requests counter.
  • Idle Workers - Idle worker counter.

2. Extended. (Available only when extended status is enabled)

  • Bytes Per Req - Average number of bytes per request.
  • Bytes Per Seq- Average number of bytes per second.
  • CPU Load - The current percentage CPU used in total by Apache.
  • Req Per Seq - Average number of requests per second.
  • Total Accesses - A total number of accesses served.
  • Total Kbytes - A total number of byte count served.
  • Uptime - The time the server has been running for.