Jmeter distribtion testting on linux

流过昼夜 提交于 2021-02-05 09:30:29

问题


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:


  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:

  • JMeter Remote Testing: Using a different port
  • How to Perform Distributed Testing in JMeter


来源:https://stackoverflow.com/questions/51304421/jmeter-distribtion-testting-on-linux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!