首页 > 解决方案 > Jmeter distribtion testting on linux

问题描述

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!

enter image description here

enter image description here

enter image description here

标签: jmeter

解决方案


  1. Make sure nothing is listening at the port 1097 using netstat or nc or telnet. Looking into non-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
  2. 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 system

  3. Amend 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:


推荐阅读