。我遇到以下错误,两台服务器上的防火墙均已禁用
Connection refused to host: 10.XX.XX.XXX; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
我在jmeter.properties的slave上设置了以下内容
server_port = 1099 server.rmi.localport = 50000
Master在jmeter.properties中具有以下设置
remote_hosts = slave.ip,master.ip(因为我也想将master用作slave) client.rmi.localport = 60000
我已经生成了rmi_keystore.jks文件,并将其放在从属服务器bin文件夹中。
之后,我启动了从属服务器以通过使用进行监听
./jmeter-server -Djava.rmi.server.hostname=10.xx.xx.xxx
然后启动从属服务器。
此后,我以非GUI模式从master运行脚本。
./jmeter -n -t pathtoscript.jmx -l logfilepath.csv -r
Creating summariser <summary>
Created the tree successfully using pathtoscript.jmx
Configuring remote engine: 10.xx.xx.xxx
Connection refused to host: 10.xx.xx.xxx; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
Failed to configure 10.xx.xx.xxx (this is slave ip)
Configuring remote engine: 10.xx.xx.xxx (this is my master ip)
Connection refused to host: 10.xx.xx.xxx; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
Failed to configure 10.xx.xx.xxx (this is my master ip)
Stopping remote engines
Remote engines have been stopped
Error in NonGUIDriver java.lang.RuntimeException: Following remote engines could not be configured:[10.xx.xx.xxx, 10.xx.xx.xxx]
答案 0 :(得分:0)
我的问题已解决。
从命令: ./jmeter-server -Dserver.rmi.localport = 50000 -Dserver_port = 1099 -Djava.rmi.server.hostname =“ Slaveipaddress” -Jserver.rmi.ssl.disable = true
主命令: ./jmeter -n -t脚本.jmx -RSlaveipaddress -l results.jtl -Jserver.rmi.ssl.disable = true
还要确保脚本中是否有任何插件,它们都应同时存在于主服务器和从设备上,并且数据文件(如果从文件中读取数据)应同时存在于主服务器和从设备上的同一位置