Tech Blog

Testing

How to Monitor Server Health & Performance of Linux machine during Load Test with JMeter

By Shabir shariff2 min read
← Back to blog

Whenever there is an increase in the average response time of the application under load test, one of the parameters that we need to monitor is the system’s resource utilization (CPU, Memory or disk usage); however, the system can be monitored with the Perfmon metrics collector plugin available in JMeter.

Perfmon plugin consists of two parts.

  1. Server agent that should be installed at the application server
  2. The Metrics collector listeners

How to set up a server agent on a Linux server.

Prerequisites: Java should be installed on the server.

 1. Download the server agent on the server where the application is deployed using the following command:

wget https://github.com/undera/perfmon-agent/releases/download/2.2.3/ServerAgent-2.2.3.zip

2. Unzip the downloaded folder using the following command

unzip ServerAgent-2.2.3.zip

3. Navigate to the unzipped folder and grant read, write, execute permissions to startAgent.sh

cd ServerAgent-2.2.3 sudo chmod 777 startAgent.sh

4. Start the server agent ./startAgent.sh

Note: The server agent will collect metrics and send them to Jmeter by UDP or TCP protocol, where the default port is 4444. To run the server agent on a different port use the following command

./startAgent.sh --udp-port 3450 --tcp-port 3450

How to configure Metrics collector listeners in JMeter to capture the CPU and memory utilization of application under test

Prerequisites: Java should be installed on the machine and JMeter application should be downloaded, Configure PerfMon (Servers Performance Monitoring) plugin in JMeter on the system in which CPU and Memory utilization would be capture

1. Add Perfmon Metrics collector listeners to the configured thread groups and configure the IP and the host name of the server to be monitored.

2. Start the test. The Perfmon Metrics collector will start capturing the configured resources (i.e CPU, Memory, Disk I/), Network I/O, etc).

Keep reading

You may be interested in

Browse all articles →
Software Testing: Challenges and Solutions
February 8, 20244 min read

Software Testing: Challenges and Solutions

Introduction – Testing software is a crucial aspect of the development process. It makes sure that the product’s functionality works as expected, fulfills the user requirements, and makes sure it works without errors. In this blog, we will list down some of the most common challenges faced in software testing and conclude with how to […]

By Saboor ChandshahaRead More →
Streamlining Software Quality: The Power of Automating Black Box Testing
February 8, 20244 min read

Streamlining Software Quality: The Power of Automating Black Box Testing

Introduction :  In the dynamic realm of software development, ensuring the robustness and reliability of applications is of paramount importance. Black box testing, a technique that assesses software functionality without requiring knowledge of its internal code, plays a vital role in identifying potential defects. As the complexity of software systems continues to escalate, the manual […]

By Anthony Gilchrist G SRead More →
Implementing best practices for end-to-end testing in cloud migration
January 31, 20245 min read

Implementing best practices for end-to-end testing in cloud migration

Importance of End-to-End Testing Assume an organization’s core systems are now hosted on the cloud—a complex ecosystem linked by data threads. End-to-end testing is the foundation upon which the reliability and performance of this interconnected web is built. This rigorous testing technique makes it possible to detect vulnerabilities, optimize operations, and improve user experience. Active […]

By Rahul ChakravartiRead More →