First, download and install
Download: https: //jmeter-plugins.org/install/Install/
After downloading the file to a plugins-manager.jar , the plugins-manager.jar Jmeter copied to the lib / ext directory, re-open the options menu Jmeter can be seen in the following interface
Open plug-in interface as shown below:
Plugins Installed (installed plug-ins)
Plugins the Available (downloadable plug-in)
Upgrades (updatable plug-in): Not recommended update, in order to avoid incompatible
Second, common plug-ins
1、Transactions per Second(TPS)
That TPS: transactions per second, one of two indicators, performance tests, the most important. The role of the plug-in is in the process of test script execution, view the server's monitor TPS performance ---- such as the overall trend, the average real-time trend, stability and so on.
This plug-in is included in the Basic Graphs in
Installation Basic Graphs After a total of three plug-ins:
-
per Second ransactions: TPS Plug
-
Response Times Over Time: transaction response time plug-ins
-
Active Threads Over Time: active thread count per second plug
After installation, restart JMeter, the monitor can be seen from these three plug-in, as shown below:
TPS变化展示图:
2、Response Times Over Time(事物响应时间)
即TRT:事务响应时间,性能测试中,最重要的两个指标的另外一个。该插件的主要作用是在测试脚本执行过程中,监控查看响应时间的实时平均值、整体响应时间走向等。
3、Response Times Over Time(每秒活跃线程数)
统计每秒活动的线程总数
4、PerfMon Metrics Collector
即服务器性能监控数据采集器。在性能测试过程中,除了监控TPS和TRT,还需要监控服务器的资源使用情况,比如CPU、memory、I/O等。该插件可以在性能测试中实时监控服务器的各项资源使用。
在插件管理中安装PerfMon
安装完成后重启Jmeter,在监听器中可以看到该插件
还需下载一个服务端插件ServerAgent,下载地址:https://github.com/undera/perfmon-agent
将下载好的ServerAgent上传到被测服务器,解压,进入目录,Windows环境,双击ServerAgent.bat启动;linux环境执ServerAgent.sh启动,默认使用4444端口。
在Jmeter中启动PerfMon Metrics Collector插件,配置需要监听的项
5、Stepping Thread Group
阶梯线程组。
在插件管理中安装Custom Thread Groups
6、JSON path extractor
json提取器。
在插件管理中安装JSON/YAML Plugins (deprecated)
JsonPath的语法推荐在此网站调试:http://jsonpath.com
转自:
https://www.cnblogs.com/eastonliu/p/10446639.html
https://sq.163yun.com/blog/article/203670081761374208