简体   繁体   English

JMeter EC2 Master 和 EC2 slave 机器上的分布式测试

[英]JMeter Distributed testing on EC2 Master and EC2 slave machines

I want to configure JMeter for distributed testing in aws Ec2 instances.我想配置 JMeter 以在 aws Ec2 实例中进行分布式测试。 I followed the Jmeter manual still facing issues.我遵循 Jmeter 手册仍然面临问题。 Both Slave and Master are aws Ec2 instances. Slave 和 Master 都是 aws Ec2 实例。 Both are from same region under same subnet.两者都来自同一子网下的同一区域。 I have turned off firewall in both master and slave.I even diabled rmi ssl with this command server.rmi.ssl.disable=true, configured the remote host with slave ip on the master.我已经关闭了主服务器和从服务器的防火墙。我什至使用这个命令服务器禁用了 rmi ssl。 before starting the execution i have launched the jmeter-server.bat on the aws slave.在开始执行之前,我已经在 aws 从站上启动了 jmeter-server.bat。 I tried to run a simple http request through slave and got the below given error.我尝试通过从站运行一个简单的 http 请求并得到以下给定错误。

Connection refused to host:<>;连接拒绝主机:<>; nested exception is: java.net.ConnectException: Connection timed out: connect嵌套异常是:java.net.ConnectException:连接超时:连接

I have disabled firewall in both slave and master machines.我在从机和主机上都禁用了防火墙。 JMeter & Java versions are the same. JMeter & Java 版本相同。 Is there a way to resolve this connection issue from master to slave through JMeter by running the test有没有办法通过运行测试通过 JMeter 解决从主到从的连接问题

If your masters/slaves are in the same VPC - you can use private IP addresses, otherwise you will have to go make sure to use public IP addresses (or DNS hostnames) If your masters/slaves are in the same VPC - you can use private IP addresses, otherwise you will have to go make sure to use public IP addresses (or DNS hostnames)

Also make sure that the following ports are open in AWS security groups :还要确保在AWS 安全组中打开以下端口:

  • 1099 (or whatever you set as the server.port ) 1099(或您设置为server.port的任何内容)
  • the port you define as server.rmi.localport您定义为server.rmi.localport的端口
  • the port(s) you define as client.rmi.localport您定义为client.rmi.localport的端口

More information:更多信息:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM