This short tutorial explains how to use multiple systems to perform stress testing. Before we start, there are a couple of things to check.
Once you’ve made sure that the systems are ready, it’s time to setup remote testing. The tutorial assumes you already have JMeter installed on all of the systems. The way JMeter works is 1 master controller initiates the test on multiple slave systems.
Terminology
Before we dive into the step-by-step instructions, it’s a good idea to define the terms and make sure the definition is clear.
Master — the system running JMeter GUI, which controls the test
Slave — the system running JMeter-server, which takes commands from the GUI and send requests to the target system(s)
Target — the webserver we plan to stress test 1/4
Step-by-Step
2. On master system acting as the console, open windows explorer and go to JMeter/bin directory
3. open JMeter.properties in a text editor
4. edit the line “remote_hosts=127.0.0.1”
5. add the IP address. For example, if I have JMeter server running on 192.168.0.10, 11, 12, 13, and 14, the entry would like like this: remote_hosts=192.168.0.10,192.168.0.11,192.168.0.12,192.168.0.13,192.168.0.14
6. Start JMeter.
7. Open the test plan you want to use
Starting the Test
At this point, you are ready to start load testing. If you want to double check the slave systems are working, open JMeter.log in notepad. You should see the following in the log.
JMeter.engine.RemoteJMeterEngineImpl: Starting backing engine
If you do not see this message, it means JMeter-server did not start correctly. For tips on debugging the issue, go to the tips section. There are two ways to initiate the test: a single system and all systems.
Start a single clients
Start all clients
Limitations
Additional resources
http://wiki.apache.org/JMeter/JMeterFAQ#How_to_do_remote_testing_the_.27proper_way.27.3F
http://JMeter.apache.org/usermanual/remote-test.html
Tips
In some cases, the firewall may still be blocking RMI traffic. Symantec Anti Virus and Firewall
In some cases, Symantec firewall needs to be stopped from windows services.
Windows firewall
Linux
On Suse linux, ipchains is turned on by default. For instructions, please refer to the “remote testing” in the user manual.
On RedHat (or derivatives), iptables (netfilter) is turned on by default. Execute “service iptables stop” to stop the Linux netfilter firewall.