天天看點

jmeter完成一個簡單的性能測試([email protected] - PerfMon Metrics Collector的運用)

場景:公司項目解耦,在項目前期對新的架構進行簡單的性能測試

工具:jmeter

1、大緻結構如下:

1800秒(半個小時)内持續産生20000的線程

建立了聚合報告,主要是檢視伺服器響應結果以及相應時間

添加[email protected] - PerfMon Metrics Collector控件,監控伺服器端的性能

jmeter完成一個簡單的性能測試([email protected] - PerfMon Metrics Collector的運用)

2、安裝方法(jmeter更新檔安裝和server agent安裝):

a.Jmeter更新檔安裝:

下載下傳位址:

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

https://jmeter-plugins.org/wiki/PerfMonAgent/

需要用到的更新檔(下圖),分别解壓之後将檔案下\lib\ext的.jar包放到JMETER_HOME\lib\ext檔案下

jmeter完成一個簡單的性能測試([email protected] - PerfMon Metrics Collector的運用)

重新開機jmeter,在添加監聽中就可以看到該控件

jmeter完成一個簡單的性能測試([email protected] - PerfMon Metrics Collector的運用)

b.Server Agent安裝:

隻需要在伺服器上解壓ServerAgent-2.2.1.zip。如果是UNIX,就啟動startAgent.sh;如果是windows,就啟動startAgent.bat

 注意:必須在伺服器上啟動ServerAgent,我們再JMeter上使用PerfMon Metrics Collector才能收集到資料!

轉載于:https://www.cnblogs.com/turbolxq/p/7777705.html