问题
I am trying do distributed testing on linux server using apache-jmeter 2.9
The default port (1099) is already used(by jboss) I changed the port as 1097 I start jmeter-server on one machine for now and start test on single machine.
jmeter-server seems to start succesfuly but when evern i trying to exceute script is shows following error.
[jboss@StagingSvr2 bin]$ ./jmeter -n -t CBL_Load/CBL_Admin_Load.jmx -l
.jtl -R 172.16.0.2
Creating summariser <summary>
Created the tree successfully using CBL_Load/CBL_Admin_Load.jmx
Configuring remote engine for 172.16.0.2
Failure connecting to remote host: 172.16.0.2
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
Failed to configure 172.16.0.2
[![enter image description here][1]][1]No remote engines were started.
I have gone through google but not able to find exact solution that where I am doing blundder!
回答1:
- Make sure nothing is listening at the port
1097
using netstat or nc or telnet. Looking intonon-JRMP server at remote endpoint
something is present there which is not JMeter RMI endpoint. Try locating a free port using aforementioned tools and bind JMeter slave to it With regards to
bind JMeter slave
I would recommend amending your startup command to something like:./jmeter-server -Dserver_port=xxxx
where
xxxx
is a free port on your Linux systemAmend your Master startup command to include the port as well like:
./jmeter -R 172.16.0.2:xxxx -n -t CBL_Load/CBL_Admin_Load.jmx -l result.jtl
More information:
- JMeter Remote Testing: Using a different port
- How to Perform Distributed Testing in JMeter
来源:https://stackoverflow.com/questions/51304421/jmeter-distribtion-testting-on-linux