DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • 7 Best Performance Testing Tools to Look Out for in 2021
  • JMeter Tutorials: Test Better, Build Better
  • Overview of Performance and Load Testing With Apache JMeter
  • How To Organize End-To-End Quality Assurance and Testing for E-Commerce Apps

Trending

  • Exploring Sorting Algorithms: A Comprehensive Guide
  • JWT Token Revocation: Centralized Control vs. Distributed Kafka Handling
  • Automated Testing Lifecycle
  • Time Series Analysis: VAR-Model-As-A-Service Using Flask and MinIO
  1. DZone
  2. Software Design and Architecture
  3. Performance
  4. Distributed Load Testing Using Apache JMeter

Distributed Load Testing Using Apache JMeter

Learn to install, set up, and view results from the open source testing tool Apache JMeter on remote systems for distributed load testing.

Rathnadevi Manivannan user avatar by
Rathnadevi Manivannan
·
Jul. 07, 17 · Tutorial
Like (2)
Save
Tweet
Share
15.93K Views

Join the DZone community and get the full member experience.

Join For Free

Overview

Distributed load testing is the process of simulating a very high workload of an enormous number of users using multiple systems. As a single system cannot generate a large number of threads (users), multiple systems are used for load testing. It helps to distribute the tests and the load.

Apache JMeter, an open source testing tool, is used for load testing, performance testing, and functional testing. In JMeter, a Master-Slave configuration is used for achieving load testing. Distributed load testing is bit tricky and can provide inaccurate results if not properly configured.

In this blog, let us discuss setting up distributed testing with JMeter.

Pre-Requisites

  • Download and install Apache JMeter from this link.
  • Ensure that all the test machines are on the same subnet.
  • Ensure that the same version of Apache JMeter is installed on all the machines.
  • Ensure that the same version of Java is installed on all the machines.
  • Disable firewall or designate it with a proxy supporting RMI protocol.
  • Ensure the correct system configurations such as RAM, processor, and so on.

Use Case

A single Apache JMeter master instance is used to control multiple remote JMeter slave instances and to generate a large volume of load on the test application.

The distributed test environment is as follows:select

Performing Distributed Load Testing

To do distributed load testing, perform the following:

Start JMeter Server in Master and Slave Systems

To start the jmeter-server.bat in both master and slave systems, perform the following:

  • Click JMeter home directory --> Bin folder.
  • Run the batch file – jmeter-server.bat (for Windows) or jmeter-server (for Linux) as shown in the below diagram:

selectNote: If you are unable to run test forms in remote machines and get the below error, check whether jmeter-server.bat file is running on the remote system:select

Set IP Addresses for Slave Systems

To set the IP addresses for slave systems, perform the following:

  • From the master system, open the properties file – jmeter.properties.
  • Remove the current IP for remote_host entry.
    For example, remove the IP address – 127.0.0.1
  • Specify the IP addresses of all the Remote systems separated by commas.
    For example, 192.168.0.1,192.168.0.2 as shown below:

select

Start Slave Systems Remotely

To remote start all the slave systems in JMeter, perform the following:

  • Open JMeter in the Master machine (on which properties file are edited).
  • Open your test script and Remote Start all the slave systems.

Creating the Test Plan in JMeter

To create the test plan in JMeter, perform the following:

  • Create a JMeter Thread Group and mention the number of threads, loop count, and ramp-up period.
  • In the Thread Group, add JMeter config element as HTTP request defaults and provide source URL and port number.
  • Add HTTP Request in the test plan thread group and mention the tested URL followed by the specific path.
  • Add the Duration Assertion to validate each response received within a given period.
  • Add the Response Assertion to verify different segments of the response such as text (response body), document (doc, PDF), response code (200, 404), response message (description of code), and response headers.
  • Add the listener to check the test plan results for all the formats.

View Results

Table View

The results can be viewed in table format as shown in the below diagram:select

Response Time Graph View

The results can be viewed in the form of a chart, as shown in the below diagram:select

Load testing Apache JMeter

Published at DZone with permission of Rathnadevi Manivannan. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • 7 Best Performance Testing Tools to Look Out for in 2021
  • JMeter Tutorials: Test Better, Build Better
  • Overview of Performance and Load Testing With Apache JMeter
  • How To Organize End-To-End Quality Assurance and Testing for E-Commerce Apps

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: