jMeter 分布式测试:Master 不会关闭
jMeter Distributed Testing: Master won't shut down
我有一个简单的 4 服务器设置 运行 jMeter(3 个从属,1 个主控):
从机 1: 10.135.62.18 运行 ./jmeter-server -Djava.rmi.server.hostname=10.135.62.18
从机 2: 10.135.62.22 运行 ./jmeter-server -Djava.rmi.server.hostname=10.135.62.22
从机 3: 10.135.62.20 运行 ./jmeter-server -Djava.rmi.server.hostname=10.135.62.20
主控:10.135.62.11 remote_hosts=10.135.62.18,10.135.62.22,10.135.62.20
我用./jmeter -n -t /root/jmeter/simple.jmx -l /root/jmeter/result.jtl -r
开始测试
输出如下:
Writing log file to: /root/apache-jmeter-3.0/bin/jmeter.log
Creating summariser <summary>
Created the tree successfully using /root/jmeter/simple.jmx
Configuring remote engine: 10.135.62.18
Configuring remote engine: 10.135.62.22
Configuring remote engine: 10.135.62.20
Starting remote engines
Starting the test @ Mon Aug 29 11:22:38 UTC 2016 (1472469758410)
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
奴隶打印:
Starting the test on host 10.135.62.22 @ Mon Aug 29 11:22:39 UTC 2016 (1472469759257)
Finished the test on host 10.135.62.22 @ Mon Aug 29 11:22:54 UTC 2016 (1472469774871)
Starting the test on host 10.135.62.18 @ Mon Aug 29 11:22:39 UTC 2016 (1472469759519)
Finished the test on host 10.135.62.18 @ Mon Aug 29 11:22:57 UTC 2016 (1472469777173)
Starting the test on host 10.135.62.20 @ Mon Aug 29 11:22:39 UTC 2016 (1472469759775)
Finished the test on host 10.135.62.20 @ Mon Aug 29 11:22:56 UTC 2016 (1472469776670)
不幸的是,虽然所有从属都完成了测试,但主控无限期地等待端口 4445 上的消息。
有什么我遗漏的吗?
我是在提交问题之前自己想出来的。我想这个解决方案还是有用的:
一旦我用这个开始测试(在主服务器上):
./jmeter -n -t /root/jmeter/simple.jmx -l /root/jmeter/result.jtl -r -Djava.rmi.server.hostname=10.135.62.11 -Dclient.rmi.localport=4001
它工作得很好。我想知道为什么文档没有提到这样的东西。
我有一个简单的 4 服务器设置 运行 jMeter(3 个从属,1 个主控):
从机 1: 10.135.62.18 运行 ./jmeter-server -Djava.rmi.server.hostname=10.135.62.18
从机 2: 10.135.62.22 运行 ./jmeter-server -Djava.rmi.server.hostname=10.135.62.22
从机 3: 10.135.62.20 运行 ./jmeter-server -Djava.rmi.server.hostname=10.135.62.20
主控:10.135.62.11 remote_hosts=10.135.62.18,10.135.62.22,10.135.62.20
我用./jmeter -n -t /root/jmeter/simple.jmx -l /root/jmeter/result.jtl -r
输出如下:
Writing log file to: /root/apache-jmeter-3.0/bin/jmeter.log
Creating summariser <summary>
Created the tree successfully using /root/jmeter/simple.jmx
Configuring remote engine: 10.135.62.18
Configuring remote engine: 10.135.62.22
Configuring remote engine: 10.135.62.20
Starting remote engines
Starting the test @ Mon Aug 29 11:22:38 UTC 2016 (1472469758410)
Remote engines have been started
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
奴隶打印:
Starting the test on host 10.135.62.22 @ Mon Aug 29 11:22:39 UTC 2016 (1472469759257)
Finished the test on host 10.135.62.22 @ Mon Aug 29 11:22:54 UTC 2016 (1472469774871)
Starting the test on host 10.135.62.18 @ Mon Aug 29 11:22:39 UTC 2016 (1472469759519)
Finished the test on host 10.135.62.18 @ Mon Aug 29 11:22:57 UTC 2016 (1472469777173)
Starting the test on host 10.135.62.20 @ Mon Aug 29 11:22:39 UTC 2016 (1472469759775)
Finished the test on host 10.135.62.20 @ Mon Aug 29 11:22:56 UTC 2016 (1472469776670)
不幸的是,虽然所有从属都完成了测试,但主控无限期地等待端口 4445 上的消息。
有什么我遗漏的吗?
我是在提交问题之前自己想出来的。我想这个解决方案还是有用的:
一旦我用这个开始测试(在主服务器上):
./jmeter -n -t /root/jmeter/simple.jmx -l /root/jmeter/result.jtl -r -Djava.rmi.server.hostname=10.135.62.11 -Dclient.rmi.localport=4001
它工作得很好。我想知道为什么文档没有提到这样的东西。