jmeter分布式测试的坑(转)

本文转自:https://www.cnblogs.com/lsjdddddd/p/5806077.htmlhtml

有关jmeter分布式测试的环境配置,大概就是那样,可是每次想要进行jmeter分布式测试的时候,老是会有各类奇怪的问题,下面整理了一些可能遇到的坑。java

 

问题:若是你的服务器名字和报错的时候显示的服务器名不一致(refuse to host:10.10.34.21,而服务器名明明是172.16.129.43)linux

只要错误中出现:Error in rconfigure() method java.rmi.ConnectException:Connection refused to host:10.10.34.21;nested exception is:java.net.ConnectException:connection timed out:connectwindows

那就就是服务器之间没有连通。服务器

 

方案:这是服务器双网卡形成的问题分布式

在linux上 修改jmeter-server测试

RMI_HOST_DEF=-Djava.rmi.server.hostname=slave机器名.net

在windows上 修改jmeter.bat3d

新增set rmi_host=-Djava.rmi.server.hostname=本机ipserver

修改set ARGS=%DUMP% %HEAP% %NEW% %SURVIVOR% %TENURING% %PERM% %DDRAW% %rmi_host%

 

问题:若是机器能够开始测试,可是测试速度很是慢,测试结果也是很是大的值。

方案:检查slave服务器和被测试服务器之间是否能够ping通

 

问题:controller机器上收不到slave机器链接过来的信息。

方案:检查slave服务器的hostname和/etc/hosts中服务器对应的名字是否相同

 

问题:slave服务器上能够starting test,可是在jmeter界面上依旧报以下图错误。

Connection refused to host:172.16.129.43;nested exception is:java.net.ConnectException:Connection timed out:connect.

方案:检查slave服务器的防火墙是否打开,须要关闭 

1) 重启后生效

开启: chkconfig iptables on

关闭: chkconfig iptables off

2) 即时生效,重启后失效

开启: service iptables start

关闭: service iptables stop

相关文章
相关标签/搜索