blogs

How We Can Measure Server Performance Using JMeter?

How We Can Measure Server Performance Using JMeter? 15 Nov,2017

Performance Testing is the process of measuring a system’s performance by increasing the demand on the system. It is performed to ascertain a system’s behavior under normal as well as the estimated peak load conditions. JMeter is a segment of the Apache Open Source project. It is an application which can be used to perform functional testing and load testing. It is designed as a pure Java application and can be used to perform load testing of any type of web application including the ones written in .NET, PHP, etc.

With the help of Jmeter, multiple threads can be created, timers can be set-up for testing, assertions and listeners can be set for the test plan. Test plan enables the user to set the test configuration that is specific for an application. After right clicking the ‘Test Plan’ item, the menu is revealed. In the menu, on hover to the ‘Add’ item user can see various test features that can be created for a test plan. After the creation of the test features, these are executed by the tester.

Following Benefits Are Offered by JMeter In Performance Testing:

 

1. JMeter can be implemented to test the performance of both static resources such as HTML, as well as dynamic resources, such as AJAX.

2. JMeter can recognize the maximum count of simultaneous users that can be handled by a website.

3. JMeter helps to analyze the performance reports graphically.

4. JMeter generates the load on the server and also comes with an agent that can be run on the server machine for the collection of server performance metrics.

JMeter consists of many listeners which provide useful information like response time of each request, the number of the requests being processed, response data, throughput, error percentage, etc. but actually there is a strong need to know the utilization of server system resource, like CPU/Memory utilization. If JMeter tests are run against software running on a computer or server, the chances are that the user will manually match the JMeter results with a statistics of CPU or Memory Usage from the server. This process can be made a lot easier by using ‘PerfMon Metrics Collector’ that is basically a listener.

Below is the graphical view of server resource utilization parameters.

performance-testing

There is a plugin called ‘PerfMon’ available in JMeter Plugins which provides a way to collect the performance metrics of your server’s health. The ServerAgent is available for collecting the server performance metrics, and one JMeter plugin that provides us a visual report of the same. The ServerAgent by default opens the port 4444 and starts a thread to listen to all the data present on the server machine. It also allows the external system to read the listener data and the JMeter plugin ‘jp@gc – PerfMon Metrics Collector’ can listen to the ServerAgent on the server. User can start the PerfMon Agent by opening the ‘startAgent.bat’ file and the user is supposed to run this on all servers from where he/she is interested to collect the data. As the PerfMon Agent runs, the user is allowed to collect the data using the PerfMon Metrics Collector plugin. Moving further, to create the lines on the graph ‘Add Row’ can be used using a row per metric. ‘Row’ tab can be used by the user to filter the collected data if he/she just wants to see the CPU data on its own.

The available PerfMon metrics include:

 

i) CPU

ii) Memory

iii) Swap

iv) Disks I/O

v) Network I/O

vi) TCP

Steps to View System Server Health using ‘PerfMon’:

 

Now when the user is all set up, here are the steps to view the system’s health:

1. User needs to go to the Application Under Test.

2. Select the “Performance” tab from the Task Manager.

3. Choose the “Ethernet” view.

4. In JMeter, the user needs to add the PerfMon Metrics Collector Listener and must provide the machine’s IP address that has the test application, the port the PerfMon Server Agent is listening to, and the “interested” metric that user needs to see.

5. Now the test can be started and the user can take a look at the charts on the left and the right.

6. In this way, the user can monitor severalPerfMon metrics, including CPU, Memory, Disk I/O, Network I/O, and JMX.

Amit Rajput He is working as Senior Performance Test Engineer and has conducted load/ performance test executions for various mobile, web and client server applications. He has good analytical skills of system performance and behavior.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name field is required !

Related Posts

Best Ways For Application Performance Testing
How We Can Measure Server Performance Using JMeter?

Performance testing is also popularly known as “Perf testing” and comes under the performance engineering field. It focuses on non-functional t...

Read More
Measure Performance of the Application - Using Open Source P...
How We Can Measure Server Performance Using JMeter?

Performance is a major factor of better user experience, so you required a tool which measures the system performance in all aspects like in case of s...

Read More
Significant Reasons That Call For Investment In Performance ...
How We Can Measure Server Performance Using JMeter?

Performance Testing is a type of testing which ensures that applications will perform well under the expected workload. Performance testing helps to c...

Read More
Why Load Testing Is Important For Your Applications and What...
How We Can Measure Server Performance Using JMeter?

Load Testing is the process of measuring a system’s performance by increasing the demand on the system. Load testing is performed to ascertain a sy...

Read More

Popular Blogs

Importance of Testing Healthcare Mobile Apps
Importance of Testing Healthcare Mobile Apps Read More
Introduction To Data Masking For Enabling Security And Safety
Introduction To Data Masking For Enabling Security And Safety Read More
Unlock The Best Tech Innovations By QA Industry
Unlock The Best Tech Innovations By QA Industry Read More
Impact of General Data Protection Regulation (GDPR) Compliance Services in Software Testing
Impact of General Data Protection Regulation (GDPR) Compliance Services in Software Testing Read More
Types of Automation Tests You Must Be Aware Of
Types of Automation Tests You Must Be Aware Of Read More

Sign up FOR NEWSLETTER !

How much traffic or load your application can handle? Know it here.
contact us