JMeter Master Slave Setup In Multiple AWS Regions

04 / May / 2016 by Tarun Saxena 3 comments

In this blog, I’ll be demonstrating how to set up master-slave JMeter set up in multiple AWS regions. The aim is to generate load from multiple regions or multiple AZs in order to get a flavour of real load. For this purpose I am using EC2 servers, so a master server in Oregon region and the slave is running in N.Virginia region.

Image Source:

Here are the details:
Master server:
Region: Oregon

Slave server:
Region: N.Virginia

I am using the same version of JMeter on both the servers. By default, the JMeter invocation works on the instance’s private IP that is why the master-slave instances are able to communicate with each other if they are in the same VPC, but when we span the set up to multiple VPCs or even regions then the same thing with private IP doesn’t work. For this purpose, we have to invoke the JMeter daemons on their public IP so that they can communicate with each other on their public IP.

For this purpose, we have to make some changes in the configuration. To invoke jmeter daemon over its public IP, we have to set a parameter “-Djava.rmi.server.hostname=” on the command on both the master and slave servers.

So the steps are listed below:
1. First, we have to trigger the JMeter daemon of the slave server on its public IP:

[js]sudo /usr/share/jmeter/bin/jmeter-server -Djava.rmi.server.hostname=


2. Then run the load test from master after invoking it on its public IP:

[js]jmeter -n -t load-test.jmx -R -Djava.rmi.server.hostname=


On Slave’s side:

slave-resultAfter following these steps, you should be able to run the master slave load test setup in multiple regions.

To know more about the best practices of Load testing, click here.


comments (3)

  1. Vikas

    What about the port communication? If you are running the test in EC2 don’t we need to open the required ports in the security group?

      1. Vikas

        Well the port communication is not that obvious to set up and rather key information missing from the above blog. Which is where I am currently struggling. But overall very helpful blog to give me a head start. Thanks for sharing.


Leave a Reply

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