Design a Scenario Run a Scenario

How to Set Up a Monitoring Environment

This task describes how to set up the LoadRunner online monitoring environment. You specify the machines and measurements that the Controller will monitor during a scenario execution in the Controller's Run tab. During scenario execution, the collected measurement data appears in the online graphs.

To set up the LoadRunner online monitoring environment:

  1. Configure the monitoring environment on the server machine

    To use the following monitors, you must first install or configure monitoring components on the server machine. For details about configuring the monitoring components, see the specific monitoring sections.

    Note: For information on how to set up the SiteScope monitoring environment, refer to the SiteScope documentation.

  2. Add the monitored server to the Controller

    Select the server whose monitors you want to configure.

    To monitor a server from the Controller, you need to add the machine and the measurements that you want to monitor.

    1. Click the desired monitor graph in the graph tree, and drag it into the right pane of the Run tab.

      • Some monitors are native LoadRunner monitors (by default), but you can also monitor through the SiteScope monitor engine. To monitor through the SiteScope monitor, double-click it in the Sitescope Graphs node.
    2. Right-click the graph and select Add Measurements, or click anywhere on the graph and select Monitors > Add Measurements. The <Monitor> dialog box opens.

    3. In the Monitored Server Machines section of the <Monitor> dialog box, click Add. The Add Machine dialog box opens.

      • Enter the server name or IP address of the machine you want to monitor. Select the platform on which the machine runs.

      • For SiteScope monitors, enter the name and port number of the SiteScope server, and specify whether you are using a Secure HTTP connection. You can also provide different user credentials. For details, see Add Machine Dialog Box.

    Back to top
  3. Select the measurements that you want to monitor

    1. Make sure that the monitor you are configuring is selected in the Monitored Server Machines area of the <Monitor> dialog box.

    2. In the Resource Measurements section of the <Monitor> dialog box, click Add. The <monitor> Configuration dialog box opens. Choose the measurements for the specific server.

    3. Note: For the Citrix monitor, if the dialog box freezes after clicking Add, you may need to rebuild the localhost cache on the Citrix server machine.

      For user interface details, see <Monitor Type> Monitor Configuration Dialog Box.

      For details about each monitor's default measurements, refer to the relevant reference section for the monitor.

    Back to top
  4. Change the monitor's default counters - Optional

    When you configure the System Resource, Microsoft IIS, Microsoft ASP, and SQL Server monitors, you are presented with a list of default counters that you can measure on the server you are monitoring. You can change the default counters for these monitors by editing the res_mon.dft file found in the LoadRunner\dat folder.

    1. Open a new scenario and click the Run tab.

    2. For each of the monitors, select the counters you want to measure.

    3. Save the scenario and open the scenario .lrs file and res_mon.dft file with an editor.

    4. From the scenario .lrs file, copy the MonItemPlus section of the each counter you selected into the res_mon.dft file.

    5. Count the number of new counters in the res_mon.dft file and update the ListCount parameter with this number.

  5. Back to top