Linux上的Jmeter分布测试 [英] Jmeter distribtion testting on linux
问题描述
我正在尝试使用apache-jmeter 2.9在linux服务器上进行分布式测试
I am trying do distributed testing on linux server using apache-jmeter 2.9
默认端口(1099)已被使用(jboss) 我将端口更改为1097 我现在在一台机器上启动jmeter-server,然后在一台机器上开始测试.
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似乎成功启动 但是当evern我尝试执行脚本时,显示以下错误.
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.
我已经浏览过Google,但是无法找到我在哪里做更准确的解决方案!
I have gone through google but not able to find exact solution that where I am doing blundder!
推荐答案
- 使用 netstat 1097上监听或 telnet 一个>.调查
non-JRMP server at remote endpoint
那里存在一些不是JMeter RMI端点的东西.尝试使用上述工具找到一个空闲端口,并将JMeter slave绑定到该端口. -
关于
bind JMeter slave
,我建议将启动命令修改为:
- 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
其中xxxx
是Linux系统上的空闲端口
where xxxx
is a free port on your Linux system
修改您的Master启动命令以包括以下端口:
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
更多信息:
- JMeter Remote Testing: Using a different port
- How to Perform Distributed Testing in JMeter
这篇关于Linux上的Jmeter分布测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!