JMeter distributed testing, also called remote testing, lets one machine start the same JMeter test plan on multiple machines and collect the test results in one place. The machine you control the test from is the master system (the JMeter manual now calls it the controller node), and the machines that generate the load are the slave systems (slave nodes, or worker nodes in the manual). To set it up, start jmeter-server on each slave, list their IP addresses in the remote_hosts property on the master, and run the test plan in command line mode with the -R option. Each slave runs the full plan, so you add load by adding machines. If you would rather not build and keep that setup, you can import the same JMX file into PFLB Platform and copy its container to add load. This guide is for testers and engineers who already have a JMX file and need load from more than one machine. It walks through the setup steps, the limits of the master and slave route, and when the PFLB route fits better. We checked the facts on 12 November 2026 against the Apache JMeter manual and the PFLB Platform documentation, and link the sources.
What Is Distributed Testing in JMeter?
A single machine runs out of CPU, memory or network capacity at some number of concurrent users. The JMeter manual describes distributed load testing as the way out: you control several remote JMeter engines from a single JMeter client and replicate a test across multiple computers, which lets you simulate heavy loads on the system under test (JMeter manual, Remote Testing).
The architecture is master and slave. The master node controls the test execution and collects the results. Each slave node runs its own JMeter server instance, executes the test plan and generates load at the same time as the others. The nodes talk to each other over Java RMI. The tutorial in the manual puts what a single JMeter client can handle on a recent 2-3 GHz CPU at 1,000 to 2,000 threads, depending on the type of test. When you need more than that, when the network of one machine is the limit, or when you prepare for a traffic peak such as a seasonal sale and want to find the bottlenecks before it, you add machines.
Two details of the manual decide how you plan a distributed load test:
- JMeter does not split the load between the slaves. Every slave runs the full test plan. If the thread group has 1,000 threads and you start 6 slaves, you inject 6,000 threads.
- The client sends the test plan, but not your data files. A CSV file that the test plan reads has to be on each slave in the right directory, and if every slave needs its own user IDs, you divide the IDs between the files yourself.
Before You Start: What Every Machine Needs
The step-by-step tutorial in the manual lists what to check before you set up remote testing (Distributed Testing Step-by-step):
- The firewalls on the machines are turned off, or the correct ports are open.
- The master and the slaves are on the same subnet. If the machines use 192.x.x.x or 10.x.x.x addresses, the target server has to be in that subnet too.
- The master can reach the target system.
- Antivirus is stopped during the load test. The tutorial says it can drastically impact timings and lead to wrong results.
- All machines run the same JMeter version and the same Java version. The tutorial says mixing versions will not work correctly.
- RMI (Java Remote Method Invocation) over SSL is set up or disabled, and no firewall blocks RMI traffic. Since JMeter 4.0, SSL is the default for the communication between the machines, and you create the key yourself with the
create-rmi-keystorescript in thebinfolder, then copyrmi_keystore.jksto every master and slave (JMeter manual, Remote Testing).
How to Perform Distributed Testing in JMeter: Master Slave Configuration Step by Step
- Start the slaves. On each slave machine with JMeter installed, go to the
jmeter/bindirectory and runjmeter-server(jmeter-server.baton Windows). Checkjmeter-server.log: a line starting with "Created remote object" means the JMeter server running on that machine started. - List the slaves on the master. In the
jmeter.propertiesfile in thejmeter/bindirectory on the master, set theremote_hostsproperty to the slave addresses, for exampleremote_hosts=192.168.0.10,192.168.0.11. You can skip the file and pass the addresses on the command line instead. - Open the right ports. The master connects to each slave on the RMI port, 1099 by default. The slaves also connect back to the master to return results, on high-numbered ports. By default the server engine uses a dynamic port, so if a firewall sits between the machines, set
server.rmi.localporton the slaves andclient.rmi.localporton the master to fixed values and open them. - Set the load per slave. The thread count in the test plan applies to every slave, so divide your target number of virtual users by the number of slaves before you set it.
- Run the test plan in command line mode. The tutorial shows GUI mode only for demonstration (Run, then Remote Start all) and says that in real life you should use CLI mode, which keeps the machine's resources for generating load:
jmeter -n -t script.jmx -R 192.168.0.10,192.168.0.11 -l results.jtl
The -R option names the slaves for this run. Add -X to exit the remote servers when the test ends. To inspect the test results, open results.jtl in a View Results Tree listener.
Limits of the JMeter Master Slave Setup
Remote testing works, and the manual is clear about where it stops:
- One subnet. RMI cannot communicate across subnets without a proxy, and therefore neither can JMeter. Load from machines in different networks or regions needs a proxy or a tunnel that you set up and keep.
- The master can become the bottleneck. The manual warns that with many slaves the client JMeter and its network connection can be overloaded, and that you should always check the client is not.
- Results travel back over the network. The slaves send all sample results to the master, without response data, and you should watch the network traffic so it does not distort the test.
- Version and key discipline. Every machine needs the same version of JMeter and Java and the same RMI key, and every machine needs the data files.
- You run the machines. Managing multiple slave machines takes time and care: provisioning, patching, firewall rules and shutting down the slaves are yours. The manual also recommends putting the slaves on the same network segment as the application, not on the application server itself, because that adds load there and taints the results.
Skip the Master/Slave Setup: Run the Same JMX on PFLB Load Generators
If you already have a JMX file and need load from more than one machine, PFLB Platform runs that script from its own load generation containers, without a master, slaves, jmeter-server or RMI ports to manage. The documentation lists three things you can do with an imported script: run it as a regular test, copy the container that holds it to generate a higher load, and set a region for each container to simulate a geographically distributed load (import from JMX).
- In the platform, click + New Test. In the Import data pane, click Import from JMeter.
- Upload the JMX file. The file size must not exceed 100 MB. Upload any supporting files the script uses, such as CSV data files. You do not need to change the paths in the JMX.
- Click Upload. The platform creates a container for the imported script and opens the test overview. If the script contains an unsupported plugin, it is not imported.
- To add load, copy the container with the script, or create a new container and import another script into it.
- Set the load profile of each container, and set a region for each copy.
This replaces the master and slave setup of distributed load testing in JMeter with containers: you add copies instead of machines and choose a region instead of opening ports.
Around the run, the same test gives you the parts that a plain jmeter -n run leaves to you:
- Several scripts in one test. Since release 1.12, you can import multiple JMX scripts into one test. The platform creates a dedicated container for each script, where you configure the load profile and other settings individually, and one consolidated Grafana dashboard covers the whole test (release notes 1.12, Grafana dashboards).
- Pass or fail criteria. Add an SLA on average response time, error rate, 95th percentile or requests per second for the test, a transaction or a request, or on the average CPU and memory usage of a monitored system. You can add or change an SLA after the run and the metric is recalculated (SLA).
- Settings sets. Link a settings set to reuse the same configuration across tests. For a JMX test, only the monitoring and webhook settings of a set apply (settings sets).
Check the limits of JMX import before you plan around it. The platform supports a defined list of plugins and thread groups, and recommends the jp@gc Ultimate Thread Group for imported scripts. Other thread groups are supported, but you cannot change their load profile in the interface (supported plugins and elements).
Which Setup Should You Use for Distributed Testing in JMeter?
- You already have machines in one network, and your team keeps the setup: configure JMeter master and slaves as above. It works with every plugin you can install.
- You want the same JMX to run from several machines and regions, with a dashboard and pass or fail criteria, and without managing the machines: import the script into PFLB Platform and copy its container.
- Your script depends on a plugin the platform does not support: stay on your own JMeter setup, or ask us to look at the script.
If you would rather have engineers write the scripts, design the load model and run the distributed tests for you, that is what our performance testing services do.