使用2台CentOS VM计算机和Jmeter进行分布式测试

问题描述 投票:0回答:1

我有2个带有CentOS的虚拟机。它们都安装了相同版本的Jmeter并可以正常工作。我正在尝试运行分布式测试,我修改了jmeter.properties文件(remote_host属性并将属性#server.rmi.ssl.disable设置为true),我可以在机器之间进行正常的ping操作,并且jmeter似乎具有访问作为“从属”或负载生成器工作的机器,但出现以下错误:

[root@01 bin]# jmeter -n -t jmeter_script1.jmx -r

Creating summariser <summary>

Created the tree successfully using jmeter_script1.jmx

Configuring remote engine: 10.111.2.4

    Starting remote engines

    Starting the test @ Tue Oct 15 14:12:17 CEST 2019 (1571141537956)

    Error in rconfigure() method java.rmi.ConnectIOException: Exception creating connection to: 10.111.2.4; nested exception is:

    java.net.NoRouteToHostException: No route to host (Host unreachable)

    Remote engines have been started

    Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
jmeter performance-testing jmeter-5.0
1个回答
0
投票

很可能是网络或防火墙问题。

  1. 请确保bind the JMeter slave machine to the given network interface喜欢:

    ./jmeter-server -Djava.rmi.server.hostname=10.111.2.4
    
  2. 确保允许以下端口进入firewall

    • 您定义为server_port的端口,默认为1099
    • 您定义为server.rmi.localport的端口
    • 您定义为client.rmi.localport的端口
  3. [另外,您可以通过将IPv4设置为java.net.preferIPv4Stack property],强制JVM使用java.net.preferIPv4Stack地址>

  4. 更多信息:true

© www.soinside.com 2019 - 2024. All rights reserved.