In order to monitor OS resources of the machines under test (in
case you have admin rights) and the LoadRunner boxes during test execution, we
can use Windows resource monitor available in LR controller. Windows resource
monitor uses “PERFMON” OS level utility at the background to fetch OS metrics,
so you would either need to have admin rights or power user rights on the box
against which you would like to carry out OS monitoring using this monitor. In
case there is any firewall between LR Controller and the box to which you would
like to monitor, 139 port needs to be opened as well.
Below are the step by step instructions on how to add
Windows Resource monitor in LR Controller and select required OS counters for
monitoring:
- In LR controller, Go to RUN tab. Under System Resource Monitor-> Select “Windows Resource Monitor” and drag to the area where we have graphs available.
- Right click on Windows Resource Monitor graph -> Select Add Measurements option.
- Click on Add under “Monitored Server Machines” section. Add machine name and OS whose resources you would like to monitor during test execution.
- Enter Machine Name and select the appropriate platform/OS, Click OK. While trying to add a remote machine for monitoring, sometimes you do get pop up box to enter credentials which LoadRunner will use to login to that box and fetch these details. Once the machine is added successfully, all the counters will be populated in the bottom half of the screen as shown below:
- Select the specific counters which you would like to monitor during test execution, and click on Add button to add them in controller. In case you will not select any counter and will click on OK, all the counters will by default get added in the controller for monitoring purpose.
It’s a very good practice to use this monitor during test
execution, so I encourage all of you to use it going forward and do let me know
in case any further information required.
P.S: For Windows
OS, windows resource monitor can be used. Similarly, for Unix/Linux based OS,
UNIX Resource monitor can be used. Please do note that HP encourages to use
SiteScope to monitor Unix/Linux type of OS instead of LoadRunner monitor due to
various known issues.