- [[PerfMon]] [[JMeter]] [[Monitoring]]
- # Installation
- Download and install the ExtrasLib (jp@gc). Follow the readme file - basically you'll need to copy over the included .jar files to the JMeter /lib directory.
- # Add listener to test plan
- Right click on Test plan and add the listener jp@gc Perfmon Metrics Collector.
- # Configure listener
- Fill in the details of the listener. An example below:
```javascript
Host/IP: dl-load.cloudapp.net
Port: 1600
Metric to collect: CPU
Metric parameter: label=DL-LOAD-WEB01_CPU```
- # Start agent on machine
- Now you'll need to start the monitoring agent on the machine you want to collect PerfMon stats from. First, you need to download the appropriate server agent from http://jmeter-plugins.org/wiki/PerfMonAgent/ .
- Then, put the unzipped file contents on the relevant machine. Edit the startAgent.bat file so that you're connecting to the right port:
- `startAgent --udp-port 0 --tcp-port 1600`
- Make sure this is the port that is specified in your listener on JMeter (on the controller).
- # Start the test
- The PerfMon metrics should be automatically collected when the test starts.