我有一个简单的4服务器设置,运行jMeter(3个从属,1个主服务器):
奴隶1:10.135.62.18正在运行./jmeter-server -Djava.rmi.server.hostname=10.135.62.18
Slave 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
Master: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上的消息。
我有什么遗漏的吗?
答案 0 :(得分:3)
我在提交问题之前就把它弄清楚了。我想解决方案仍然有用:
一旦我开始测试(在主服务器上):
./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
它运作得很好。我想知道为什么文档没有提到这样的东西。