我想每5秒發送一個請求通過api登錄。我不知道如何通過線程組完成。我怎樣才能每5秒發送一個請求在jmeter
我想:
No. of threads : 100
Ramp-up period : 20
Loop-count : Forever
但它每秒發送5個請求。
我應該爲此使用最終的線程組嗎?
我想每5秒發送一個請求通過api登錄。我不知道如何通過線程組完成。我怎樣才能每5秒發送一個請求在jmeter
我想:
No. of threads : 100
Ramp-up period : 20
Loop-count : Forever
但它每秒發送5個請求。
我應該爲此使用最終的線程組嗎?
Constant Throughput Timer是你在找什麼。添加它作爲您的請求的孩子,其配置如下:
12
all active threads in current thread group
這將限制速度請求執行至每分鐘12個請求(5秒內請求1次)
還請注意e增強版本:Throughput Shaping Timer可通過JMeter Plugins項目獲得。
試試這個,
No. of threads : 100
Ramp-up period : 500
它會發出500秒僅限100個請求。即每5秒1個請求。
非常感謝。它有助於。 –
如果我使用常數計時器,那麼我應該增加什麼時間? –