配置master(controller)
-
配置jmeter.properties文件
remote_hosts=xxx:1099,xxx:1099
#remote_hosts=localhost:1099,localhost:2010RMI port to be used by the server (must start rmiregistry with same port)
server_port=1099
server.rmi.ssl.disable=true
sampleresult.timestamp.start=true -
配置system.properties文件
末尾追加
java.rmi.server.hostname=xxx(master机ip地址)
负载机slaves
-
配置jmeter.properties
remote_hosts=127.0.0.1
RMI port to be used by the server (must start rmiregistry with same port)
server_port=1099
server.rmi.ssl.disable=true
sampleresult.timestamp.start=true -
配置system.properties文件
末尾追加
java.rmi.server.hostname=xxx(master机ip地址)
-
启动slaves机
改为当前执行机的ip
./jmeter-server -Djava.rmi.server.hostname=xxxx(slave机ip)