服务器端放这个
如果端口号被占用,默认报这个错:
如果默认的4444端口被占用的修改:
C:\Users\Administrator>CD E:\
E:\apache-jmeter-4.0\ServerAgent-2.2.1>cd E:\apache-jmeter-4.0\ServerAgent-2.2.1
E:\apache-jmeter-4.0\ServerAgent-2.2.1>java -jar ./CMDRunner.jar --tool PerfMonAgent --udp-port 6666 --tcp-port 6666
INFO 2019-11-14 14:49:16.438 [kg.apc.p] (): Binding UDP to 6666
INFO 2019-11-14 14:49:17.437 [kg.apc.p] (): Binding TCP to 6666
INFO 2019-11-14 14:49:17.439 [kg.apc.p] (): JP@GC Agent v2.2.0 started
INFO 2019-11-14 14:50:20.620 [kg.apc.p] (): Accepting new TCP connection
INFO 2019-11-14 14:50:20.622 [kg.apc.p] (): Yep, we received the ‘test‘ command
INFO 2019-11-14 14:50:20.623 [kg.apc.p] (): Starting measures: cpu:
INFO 2019-11-14 14:50:42.030 [kg.apc.p] (): Client disconnected
INFO 2019-11-14 14:50:43.917 [kg.apc.p] (): Accepting new TCP connection
INFO 2019-11-14 14:50:43.918 [kg.apc.p] (): Yep, we received the ‘test‘ command
INFO 2019-11-14 14:50:43.919 [kg.apc.p] (): Starting measures: cpu:
JMeter-jp@gc - PerfMon Metrics Collector-CPU监控工具的配置及使用(win版本)