Over a million developers have joined DZone.

How to Load Test Opening a URL on a Remote Machine with JMeter

DZone's Guide to

How to Load Test Opening a URL on a Remote Machine with JMeter

We take a look at how to load test when visiting a URL on a remote machine is necessary. JMeter to the rescue!

· Performance Zone ·
Free Resource

Container Monitoring and Management eBook: Read about the new realities of containerization.

Sometimes we need to open a URL on a remote machine, i.e, visit a website on a remote machine. This can be useful when we want to load test a view counter that counts unique users to a website from unique IPs, or download the counter to a website. Of course, this task can be accomplished with Apache JMeter. We just need to have access to one Master machine and one or more Slave machines that have JMeter downloaded on them.

The JMeter GU I will be running from the Master; this machine will control the test. The JMeter Servers will be run from the Slaves. These machines  will receive commands from the Master machine and send requests to the necessary URL.

The tested website is the target URL across the web. In our case it will be the BlazeDemo website (http://blazedemo.com/).

Increase imagerun a url on a remote machine

Let’s set up the proper configuration to accomplish this task.

  1. Check your machines’ Java version. All machines should have the same version of Java.

  2. Make sure all machines have the same JMeter version. In my case, all of the machines have the 3.2 version of JMeter.

  3. Check your firewall settings. The JMeter/RMI (Remote Method Invocation) port should be opened on all machines, port 1099 by default.

Running JMeter


4. Start the JMeter server on the Slave machine. To do that, run the following command in the terminal from JMeter’s bin folder: 

The output of this command should be a message similar to:

Created remote object: UnicastServerRef[liveRef: [endpoint: [XXX.XX.XX.XX: 57471](local), objID: 
[-13e e47f6: 160082 f3a55: -7 fff, 5623411068973535283]]]


This means the server is started and ready to work, where XXX.XX.XX.XX is the slave ip.

5. Update the remote hosts list on the Master machine. To do that, open the jmeter.properties file, which is located in JMeter’s bin folder, with your favorite text editor. Find the remote_hosts option and update it with the slave IP. 

# Remote Hosts - comma delimited


6. Start JMeter on the Master machine and make sure the slave IP is presented in the menu.

Run -> Remote Start -> XXX.XX.XX.XX

Increase imagejmeter load testing counters


7. Add a Thread Group to the Test plan.

Test plan -> Add -> Thread (Users) -> Thread Group

8. Add an HTTP Request that opens the necessary URL.

Thread Group -> Add -> Sampler -> HTTP Request

Increase imagejmeter load testing openaing a url on a remote machine

Set the following value:

  • Server name or IP: blazedemo.com

9. Add a View Results Tree listener to the Thread Group.

Thread Group -> Add -> Listener -> View Results Tree

10. Run the script on the remote machine.

Run -> Remote Start -> XXX.XX.XX.XX

Increase imageopening a url on a remote skave machine with a master for jmeter testing

11. Check the results of the test in the listener.

Increase imageopen source load testing, remote URL

As we can see, the request passed. But we can’t actually see the response data of the request in the listener. This is because of the sample sending mode when remote testing. The default sample sending mode is StrippedBatch. StrippedBatch removes the response data from successful samples.

Viewing Response Data


To view the response data in the listener, we need to change the JMeter mode to Standard. The Standard mode sends response data from all samples synchronously.

12. Start JMeter in Standard mode on the Master machine. Nothing needs to be done on the Slave Machines.

$ jmeter -Jmode=Standard

Flag -J is responsible for sample sending mode.

13. Run the script on the remote machine and check the results.

Increase imageperformance testing remote URLs

The request passed and the results are shown in the listener. We can see that the website was loaded successfully.

That’s it! You now know how to performance test opening a URL on a remote machine with JMeter. I hope this blog post helps you solve some of your problems.

I also suggest you read another awesome blog post about distributed testing in JMeter. It will help give you a better understanding of using remote machines.

Learn more advanced JMeter capabilities from our free JMeter academy.

Click here to subscribe to our newsletter.

To try out BlazeMeter, which enhances JMeter capabilities, request a demo, just put your URL in the box below and your test will start in minutes.

Take the Chaos Out of Container Monitoring. View the webcast on-demand!

machine ,gui ,url ,load testing ,remote ,java ,performance

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}