先下载jmeter-ServerAgent
Windows下载和Linux下载
https://jmeter-plugins.org/wiki/PerfMon/ 找到ServerAgent的下载链接
# wget https://github.com/undera/perfmon-agent/releases/download/2.2.3/ServerAgent-2.2.3.zip
在被测服务器运行Agent
1、解压后 jmeter-ServerAgent-2.2.1
2、windows下直接运行startAgent.bat
3、Linux下
# chmod 777 jmeter-ServerAgent-2.2.1 -R
# ./startAgent.sh
看到以下结果就搞定啦~~
INFO 2018-12-12 15:37:48.872 [kg.apc.p] (): Binding UDP to 4444
INFO 2018-12-12 15:37:49.873 [kg.apc.p] (): Binding TCP to 4444
INFO 2018-12-12 15:37:49.881 [kg.apc.p] (): JP@GC Agent v2.2.3 started
4、用Jmeter-监听器下的jp@gc - PerfMon Metrics Collector来监听服务器的ip 4444端口,可实现监控服务器IO、CPU、内存等指标