window 系统下的nGrinder agent代理
##下载,解压,双击ngrinder-agent下的run_agent.bat
linux系统下的nGrinder agent代理
##下载方式同上,上传linux
rz ngrinder-agent-3.5.4-localhost.tar
##解压
tar -xf ngrinder-agent-3.5.4-localhost.tar
##修改配置
vim /usr/local/ngrinder-agent/__agent.conf
common.start_mode=agent
# controller的地址
agent.controller_host=192.168.*.*
agent.controller_port=16001
agent.region=NONE
# 代理地址ip
agent.host_id=192.168.*.*
agent.server_mode=true
# provide more agent java execution option if necessary.
#agent.java_opt=
# provide more agent jvm classpath if necessary.
#agent.jvm.classpath=
# set following false if you want to use more than 1G Xmx memory per a agent process.
#agent.limit_xmx=true
# please uncomment the following option if you want to send all logs to the controller.
#agent.all_logs=true
# some jvm is not compatible with DNSJava. If so, set this false.
#agent.enable_local_dns=false
# please uncomment the following option if you want to run controller_to_agent connection mode agent.
#agent.connection_mode=controller_to_agent
#agent.connection_port=14000
# set following with the ip you want to broadcast yourself. Set this option if the agent needs to be discovered as public ip.
#agent.broadcast_ip=
##启动linux下的agent
./run_agent.sh > /tmp/run_agent.log 2>&1 &
##查看日志,检查是否启动成功
注意:
a.controller和agent之间的防火墙要开通
b.启动成功后agent.conf的配置文件的路径存放在/root/.ngrinder_agent/下
##多个agent代理