杰客网络

杰客网络个人博客

Jmeter插件之ServerAgent

压力测试 0 评

Jmeter插件之ServerAgent服务器性能监控工具的安装和使用
https://www.cnblogs.com/pachongshangdexuebi/p/13354201.html

https://jmeter-plugins.org/downloads/old/

JMeter中文化
找到jmeter下的bin目录,打开jmeter.properties 文件

第三十七行修改为

language=zh_CN

去掉前面的#,以后打开就是中文界面了

解决乱码问题:修改如下

update by lhj

sampleresult.default.encoding=ISO-8859-1

sampleresult.default.encoding=utf-8

启动:
[root@localhost ServerAgent-2.2.1]# ./startAgent.sh
INFO 2020-08-21 11:17:46.780 [kg.apc.p] (): Binding UDP to 4444
INFO 2020-08-21 11:17:47.781 [kg.apc.p] (): Binding TCP to 4444
INFO 2020-08-21 11:17:47.786 [kg.apc.p] (): JP@GC Agent v2.2.0 started

判断是否启动:
ps -aux|grep Agent

[root@localhost ~]# ps -aux|grep Agent
root 24267 0.0 0.0 113280 1384 pts/0 S+ 11:17 0:00 /bin/sh ./startAgent.sh
root 24269 0.1 0.6 4523968 53232 pts/0 Sl+ 11:17 0:00 java -jar ./CMDRunner.jar --tool PerfMonAgent
root 24292 0.0 0.0 112828 968 pts/2 S+ 11:28 0:00 grep --color=auto Agent

结束进程:
[root@localhost ~]# kill -9 24267
[root@localhost ~]# kill -9 24269

修改端口号:
./startAgent.sh --tcp-port 48003 --udp-port 48003 --sysinfo

nginx的使用(启动、重启、关闭)
发表评论
撰写评论