JMeter分布式负载测试-本地系统中的主服务器,AWS EC2 Windows实例中的从机-无法连接

时间:2018-07-09 09:26:53

标签: jmeter

我正在本地笔记本电脑中运行Master Jmeter,并在AWS EC2 Windows实例中创建了Slave。我已经在主Jmeter属性文件中设置了EC2的IP地址。 我还确保主机和从机都具有相同的JMeter版本。 现在,当我通过gui或非gui模式连接slave时,出现以下错误。 请帮我解决这个问题。

14:52:23,294 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.RemoteStart@5b22b970
java.lang.RuntimeException: Following remote engines could not be configured:[172.31.3.238]
    at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:112) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_171]
    at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_171]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_171]

2 个答案:

答案 0 :(得分:1)

调查172.31.3.238地址,似乎您正在尝试连接AWS实例的private address,而应该使用Public IP

还要确保默认情况下,相关端口1099是通过AWS Security Groups和您的Windows firewall公开的。

还可以考虑将您的master实例也移到AWS上,否则您可能会为在相同区域内AWS实例之间免费的流量收取巨额费用。有关设置主从之间的连接的更多信息,请参见How to Perform Distributed Testing in JMeter

答案 1 :(得分:0)

当您创建主/从关系时,最好将两台计算机都放在同一个VLAN中,这样就不会出现任何通信问题,请尝试将它们放在同一个VLAN中并检查它。 >