Distributed testing is a testing process, supports multiple systems to implement stress testing. Distributed testing is helpful to test those web sites and web server applications who work with multiple clients simultaneously.
Figure shows the client-server model of Distributes testing,
- Master: A JMeter GUI which controls each slave.
- Slave: A JMeter-server which gets command from the master and sends the request to server under test.
- Target: The web server gets request from slaves, under test
Copy all JMeter folders to all slave machines. Installation of JMeter makes environment variables for JMETER_HOME and JMETER_BIN in all the slave machines (even on Master machine).
To perform stress testing on multiple systems, there are certain things to check,
- System should have latest JDK on the host (slave) machine and latest JMeter on the host (slave) machine.
- Multiple systems firewall should be turned off
- Environment variables should define for JMeter(JMETER_HOME, JMETER_BIN)
- All clients should be in same subnet
- If web server belongs to “192.x.x.x” or “10.x.x.x” IP addresses, the web server will be in the same subnet. If the web server doesn’t belongs to“192.x.x.x” or “10.x.x.x” IP addresses then there will be a problem
- Make sure, Jmeter can access the web server without any restriction
- All systems should have same version of Jmeter. Different versions may not work properly
Step-by-Step Testing Process
· System configuration
· Run the test
First Step: System configuration
Go to the slave systems -> jmeter/bin directory to execute “jmeter-server.bat”file.
On windows, a slave machine which belongs to 192.168.0.10 IP address, looks like the given below figure,
In the master systems, just visit /bin directory to edit jmeter.properties file, adds IP slave machine as shown below:
Second Step: Run the test
Open the test plan to run JMeter GUI, using the master machine.
Click on Run on the menu bar then choose Remote start -> select the IP address of slave machine.
Third Step: Troubleshooting
If you are unable to run the test and it returns error message, say administrator of the slave machine to run the jmeter-server.bat file, shown in the figure below.
Tips to Follow:
In some cases, Symantec Anti-Virus and Firewall blocks RMI traffic.
To stop Symantec firewall from windows services, go to the control panel – > administrative tools, double click services, find-out the Symantec antivirus, right click it to stop.
To stop window firewall, open network connections, choose the network connection, right click and select properties, select advanced tab and unchecked internet connection firewall.
Listener: Use “Aggregated Report” listener to see the aggregated report from your all host machine.
While proceeding, there are some limitations of distributed testing,
- Server and all clients should belong to the same subnet.
- Distributed testing needs target server with large processing power. The target Server should be capable to take overloaded, in case of getting too many requests by distributed JMeter tests.
- A single JMeter should be capable to handle a limited number of threads (100- 300 threads).
- The distributed JMeter testing is bit complex and difficult for beginner to understand and build.
Don’t Miss Another Article
Join over 10,000 people who get FREE and fresh content from this Blog.
We Respect Privacy, You’re Safe! No Spam!