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 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.
- How to Set up the Citrix Monitoring Environment
- How to Set Up the IBM WebSphere MQ Monitor
- How to Configure a LoadRunner Scenario to use J2EE/.NET Diagnostics
- How to Set Up the Network Monitoring Environment
- How to Set Up the Oracle Monitoring Environment
- How to Set up the UNIX Monitoring Environment
Note: For information on how to set up the SiteScope monitoring environment, refer to the SiteScope documentation.
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.
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.
Right-click the graph and select Add Measurements, or click anywhere on the graph and select Monitors > Add Measurements. The <Monitor> dialog box opens.
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.
Make sure that the monitor you are configuring is selected in the Monitored Server Machines area of the <Monitor> dialog box.
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.
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.
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.
Open a new scenario and click the Run tab.
For each of the monitors, select the counters you want to measure.
Save the scenario and open the scenario .lrs file and res_mon.dft file with an editor.
From the scenario .lrs file, copy the MonItemPlus section of the each counter you selected into the res_mon.dft file.
Count the number of new counters in the res_mon.dft file and update the ListCount parameter with this number.