Record jmeter distributed deployment

jmeter distributed deployment

First, the purpose

In order to meet the pressure requirements, the stress test configuration of a single server is not supported or the pressure is not up to expectations.

2. Environment configuration

1. Prepare two Windows servers to install the same version of jmeter (address yourself Baidu)

2. Configure jmeter environment variablesimage

CLASSPATH=%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;

3. jmeter file configuration:

#Edit the jmeter.properties file in the jmeter directory of the master machine

4. Modify the code around line 258-259 of the file

remote_hosts=localhost:1099
#If there are several meat machines, enter a few IPs, separated by ",",
for example, remote_hosts=192.168.0.0:1099,192.168.0.0:1098,192.168.0.0:1097
Configure and save
image

5. The meat machine starts jmeter, enters the bin directory to start, and the jmeter-server.bat file is enough

insert image description here

3. Startup settings

1. The master machine starts jmeter, click Run-Run Start-check the set meat machine

insert image description here

2. Run to check whether it is normal, set 4 threads, 1 loop, click remote start all, and view the result tree

You can see 8 progress results in the result tree, indicating that the setting is successful and the stress test can be performed
insert image description here

Guess you like

Origin blog.csdn.net/qq_34004131/article/details/121099732