How to add and use PerfMon in JMeter

JMeter is an open-source load-testing tool developed by the Apache Software Foundation. It is primarily used for performance testing and measuring the performance of web applications. It provides a wide range of built-in components for load testing, including samplers, listeners, and controllers.

PerfMon in JMeter

PerfMon, also known as the PerfMon Metrics Collector, is a plug-in for JMeter that allows us to monitor the performance metrics of remote machines during load testing. With PerfMon, we can collect metrics such as CPU usage, memory utilization, disk I/O, and network activity from the machine running our application or server. This information helps us understand the system's performance characteristics, identify bottlenecks, and analyze the impact of load on system resources.

Steps to add and use PerfMon

Here are the step-by-step instructions on how to add and use PerfMon (performance monitoring) in JMeter:

Step 1: Download the PerfMon plug-in

  • Go to the JMeter Plug-ins website: https://jmeter-plugins.org/

  • Navigate to the “Downloads” section.

  • Download the PerfMon plug-in that matches your JMeter version.

Step 2: Install the PerfMon plug-in

  • Extract the downloaded archive.

  • Locate the .jar file from the extracted folder.

  • Copy the .jar file.

  • Paste the .jar file into your JMeter installation's lib/ext directory.

Step 3: Restart JMeter

  • Restart JMeter to load the PerfMon plug-in.

Step 4: Add PerfMon Metrics Collector to test plan

  • Open the JMeter test plan.

  • Right-click the test Plan element in the "Tree" view.

  • Select “Add” -> “Listener” -> “jp@gc - PerfMon Metrics Collector”.

Step 5: Configure PerfMon Metrics Collector

  • In the PerfMon Metrics Collector listener, click the “Add” button to add a server.

  • Enter the server details (hostname/IP and port) for the machine where you want to collect performance metrics.

  • Check the checkboxes for the metrics you want to collect (e.g., CPU, Memory, Disk, Network).

  • Configure the polling interval and other options as per your requirements.

Step 6: Start the PerfMon Metrics Collector

  • Start your test plan execution.

  • The PerfMon Metrics Collector will collect the performance metrics from the remote machine.

Step 7: View performance Metrics

  • After completing the test run, you can view the collected performance metrics.

  • You can view the metrics in real time during the test execution or save them to a file for further analysis.

Ensure the remote machine has the necessary permissions and firewall settings to allow JMeter to connect and collect the performance metrics.

By following these steps, you can add and use the PerfMon plugin in JMeter to monitor the performance metrics of remote machines during your load tests.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved