Apache web server monitor

The Apache monitor shows the measurements and server properties that can be monitored on the Apache web server during the test run.

Set up the Apache monitor

This task describes how to configure the Apache monitor.

  1. Prerequisite

    If your monitor accesses a server outside of your internal network, you may need to set up a web proxy to collect data from it. For details, see Prerequisites.

  2. From the LoadRunner Enterprise navigation toolbar, click and select Monitors (under Assets).

  3. In the test resource tree, select an existing monitor profile, or click New Monitor Profile and create a new monitor profile.

  4. In the Monitor Profile page, click Add Monitor and select Windows Resources.

  5. In the Windows Resources page, enter the server details:

    UI Elements

    Description

    Server

    The name or IP address of the Apache server whose resources you want to monitor.

    URL

    The Server statistics information URL. To verify the statistics information URL, try to view it through the browser using the following format: http://<server_name/IP address>:<port_number>/server-status?auto For example: http://stimpy:80/server-status?auto.

    Format: Enter the server statistics information URL, without the server name.

    Default value: /server-status?auto

    Note: The default port number and URL can vary from one server to another. Consult your web server administrator.

    Port

    The port number of the Apache server.

    Note: To monitor an Apache server through a firewall, use the web server port (by default, port 80).

  6. Click Get Counters to display a list of available metrics and counters, and select the relevant measurements that you want to monitor.

    Measurement

    Description

    # Busy Servers

    The number of servers in the Busy state.

    # Idle Servers

    The number of servers in the Idle state.

    Apache CPU Usage

    The percentage of time the CPU is utilized by the Apache server.

    Hits/sec

    The HTTP request rate.

    KBytes Sent/sec

    The rate at which data bytes are sent from the web server.

Back to top

Change the Apache default server properties

This task describes how to modify the Apache default server properties that are defined in the monitor configuration file.

  1. Open the apache.cfg file in the <LoadRunner Enterprise server root folder>\dat\monitors directory.

  2. Edit the following parameters after the Delimiter=: statement:

    InfoURL

    Server statistics information URL.

    ServerPort

    Server port number.

    SamplingRate

    Rate (milliseconds) at which the monitor will poll the server for the statistics information. If this value is greater than 1000, LoadRunner Enterprise will use it as its sampling rate. Otherwise, it will use the sampling rate defined in the Monitors tab of the Options dialog box.

  3. Save and close the file.

Back to top

See also: