由一台控制机(Master )发出命令,控制多个压力机(Slaves)执行操作。
1、控制机和压力机的前提条件:
2、压力机操作步骤(以linux系统为例)
# RMI port to be used by the server (must start rmiregistry with same port)
server_port=1234
# To change the default port (1099) used to access the server:
server.rmi.port=1234
# Set this if you don't want to use SSL for RMI
server.rmi.ssl.disable=true
./jmeter-server -Djava.rmi.server.hostname=压力机ip
3、控制机操作步骤
remote_hosts=192.168.220.129:1234,127.0.0.1:1234
#remote_hosts=localhost:1099,localhost:2010
# RMI port to be used by the server (must start rmiregistry with same port)
server_port=1234
# To change the default port (1099) used to access the server:
server.rmi.port=1234
# Set this if you don't want to use SSL for RMI
server.rmi.ssl.disable=true
mode=Standard
jmeter -n -t 分布式测试计划.jmx -l C:\Users\one_day_i_will\Desktop\test\分布式测试计划.jtl -e -o C:\Users\one_day_i_will\Desktop\test\report -R 127.0.0.1,192.168.220.129
`