Jmeter cluster stress test architecture diagram
Among them, the Jmeter Controller is used as the master (on the client side of jmeter) to publish the pressure test cases and recover the pressure test results.
And other slaves (server side in jmeter) are used for distributed pressure measurement.
Configure SLAVE
server_port=24001 server.rmi.localhostname=10.8.39.120 server.rmi.localport=26001
Start the SLAVE command
%JMETER_HOME%\bin\jmeter-server.bat -Djava.rmi.server.hostname=10.8.39.114
java.rmi.server.hostname refers to the (LAN or public network) IP address of the slave machine, such as 10.8.39.114.
Simple startup script, placed in the root directory of Jmeter. The script requests the window's notepad to create and rename a .bat file
set JMETER_HOME=%~dp0 call %JMETER_HOME%/bin/jmeter-server.bat -Djava.rmi.server.hostname=10.8.39.114
Double click to start.
Configure MASTER
remote_hosts=10.8.39.114:24001, 10.8.39.115:24001 client.rmi.localport=25000 mode=Statistical
Start MASTER
%JMETER_HOME%\bin\jmeter.bat -Djava.rmi.server.hostname=10.8.39.7
java.rmi.server.hostname refers to the IP address of the master machine (LAN or public network), for example: 10.8.39.7.