在Vm Centos中使用jmeter运行分发测试
我正在尝试运行一个分发测试以供学习,我在Windows 7中将虚拟机Centos 7用作从机(在Windows 7中运行的主机),但即使我使用从机(VM)的IP配置主机,修改文件jmeter.properties,也无法工作,我尝试在Centos机器上运行Jmeter服务器,但出现了此问题在Vm Centos中使用jmeter运行分发测试,centos,jmeter,performance-testing,Centos,Jmeter,Performance Testing,我正在尝试运行一个分发测试以供学习,我在Windows 7中将虚拟机Centos 7用作从机(在Windows 7中运行的主机),但即使我使用从机(VM)的IP配置主机,修改文件jmeter.properties,也无法工作,我尝试在Centos机器上运行Jmeter服务器,但出现了此问题 Created remote object: UnicastServerRef [liveRef: [endpoint:[127.0.0.1:44341](lo cal),objID:[4e68a212:14
Created remote object: UnicastServerRef [liveRef: [endpoint:[127.0.0.1:44341](lo
cal),objID:[4e68a212:14a8564a618:-7fff, 5760053273490727502]]]
Server failed to start: java.rmi.RemoteException: Cannot start. localhost.locald
omain is a loopback address.
An error occurred: Cannot start. localhost.localdomain is a loopback address.
有人能给我一个方向看或解释我怎么做?
谢谢
java.rmi.server.hostname=xxx.xxx.xxx
jmeter (or jmeter-server) -Djava.rmi.server.hostname=xxx.xxx.xxx.xxx
/etc/hosts
文件包含以下行:
127.0.0.1 localhost localhost.localdomain
xxx.xxx.xxx.xxx your CentOS machine hostname
xxx.xxx.xxx.xxx
应该是CentOS机器的IP地址,并且该IP地址必须不同于127.0.0.1
还要确保您在虚拟机中选择了“桥接”网络,机器应该能够通过网络相互连接,防火墙应该正确配置以允许通信,等等
有关不同JMeter属性以及设置/重写它们的方法的更多信息,请参阅