The use of JMeter for load testing, using a single machine simulation test more than 1000 strokes of the concurrency is somewhat inadequate, in the course of execution, the JMeter itself will automatically shut down, to solve this problem, you can use distributed testing, running multiple machines running so-called Agent to share JMeter own pressure, and take this to get a larger number of concurrent users, but need to make some relevant changes, as follows:
1. Install JMeter on all machines that expect to run JMeter as Load Generator, and identify one of the machines as the Controller and other machines as agents. Then run the Jmeter-server.bat file on all the agent machines-assuming we use two machines 192.168.0.1 and 192.168.0.2 as agents;
2, find the bin directory under the JMeter installation directory of the controller machine, and then find jmeter.properties this file, use Notepad or other text editing tools to open it;
3. Find the string "remote_hosts=" in the open file, and you can find such a line "remote_hosts=127.0.0.1". The 127.0..0.1 represents the machine running the JMeter Agent, which needs to be modified to "remote_hosts=192.168.0.1:1099,192.168.0.2:1099"--1099 of which are JMeter The default RMI port number for communication between the Controller and the Agent;
4, save the file, and restart the Controller machine jmeter.bat, and enter the Run-and Remote Start menu item, here you can see the Remote boot menu below the 192.168.0.1, 192.168.0.1 two IP address
5, if you want to make a computer execution, you can click to change the computer's IP address can be, if two are to execute, you can click the Run menu under the "Remote Run All" menu
6, sometimes used as a proxy machine too little, still can not meet the needs, you need to be a controller computer also as an agent, you also need to modify the Jmeter.properties file, the controller's IP address to write. Meanwhile, at this time, you need to open the controller computer in the JMeter under the Bin directory Jmeter-server.bat, and then open Jmeter.bat, at this time, into the run-and Remote Start menu, You can see that the controller is also running as a remote machine.
Using JMeter for distributed performance testing