jmeter monitor server performance (windows system)

 

A, jmeter install the plug

The first two are jmeter plug mounted to a local folder jmeter
third is placed in the server

 

jmeter plug official website address: https://jmeter-plugins.org/

[I] share of Baidu Cloud

Link: https: //pan.baidu.com/s/1sWuKT7aD5bmEwd1-VF2smg
extraction code: akr6

Second, unzip

1. decompressing compressed first two, the inside of the \ lib \ .jar file is copied to the ext of jmeter lib / ext directory, where the downloaded version 1.4 of the plug and require version jdk1.6 above jmeter2.4 use

2. Restart jmeter, the following new components appear, the successful launch

 

Third, the serverAgent monitor server are copied to the server to be monitored

windows server, double-click to start startAgent.bat (Linux server starts startAgent.sh can)
start in linux ./startAgent.sh yes, you may be prompted: "- bash: ./startAgent.sh: insufficient privileges", then we need execute the command: chmod + the X-startAgent.sh
(address on the company's server directory: D: \ wwwroot \ test \ ServerAgent-2.2.1)

 

7777 port can be connected outside the network's servers, you need to modify the port, use the command :
1. First, enter cmd into the command ServerAgent root directory
2. Run java -jar ./CMDRunner.jar --tool PerfMonAgent --udp-port 7777 --tcp-port 7777

Together we can perform a two-step commands:

cd /d D:\wwwroot\test\ServerAgent-2.2.1>nul
java -jar ./CMDRunner.jar --tool PerfMonAgent --udp-port 7777 --tcp-port 7777
(>nul 代表回车,可以把两个命令放在一起)

 

 

四、常用组件简要介绍

jp@gc - Bytes Throughput Over Time:不同时间吞吐量展示(图表)
聚合报告里,Throughput是按请求个数来展示的,比如说1.9/sec,就是每s发送1.9个请求;而这里的展示是按字节Bytes来展示的图表
jp@gc - Composite Graph: 混合图表
在它的Graphs里面可以设置多少个图表一起展示,它可以同时展示多个图表
jp@gc - Hits per Second:每秒点击量
jp@gc - PerfMon Metrics Collector:服务器性能监测控件,包括CPU,Memory,Network,I/O等等
jp@gc - Reponse Latencies Over Time:记录客户端发送请求完成后,服务器端返回请求之前这段时间
jp@gc - Reponse Times Distribution: 显示测试的响应时间分布,X轴显示由时间间隔分组的响应时间,Y轴包含每个区间的样本数
jp@gc - Transactions per Second: 每秒事务数,服务器每秒处理的事务数

 

 

很早之前整理的,现在放上来,写的比较简陋,随时欢迎交流~~

Guess you like

Origin www.cnblogs.com/betterbb/p/11285022.html