分布式测试
操作步骤:
1.安装jmeter,确定一台机器为controller,其他的机器作为Agent,然后运行所有Agent上的jmeter-server.bat文件,
现在假设两台机器192.168.0.11和192.168.0.12作为Agent,(Agent的机器同样要有jdk环境,并配置好环境变量)
2.在Controller机器 的 %jmter_home%/bin下,编辑jmeter.properties中的
‘remote_hosts=127.0.0.1’.其中127.0.0.1表示运行Jmter Agent的机器,这里需要修改为
‘remote_hosts=192.168.0.11:1099,192.168.0.12:1099’,其中1099是端口号,
3.启动controller起机器上的jmeter.bat,选择菜单Run中的‘Remote Start’中的
192.168.0.11:1099,192.168.0.12:1099来运行Agent
有时候还是不够,需要把controller的也添加进去,同上就可以了
可能遇到的问题