2014-09-26 268 views
1

我已經爲1500個用戶運行jmeter腳本。它開始發送請求,但經過一段時間後,它會停止並顯示任何進度。測試也不會在結束時停止。JMeter停止發送請求

非GUI模式的控制檯狀態如下:

summary + 280 in 112s = 2.5/s Avg: 45551 Min: 42988 Max: 84385 Err: 278 (99.29%) Active: 450 Started: 1500 Finished: 1050 

summary = 14812 in 1439s = 10.3/s Avg: 77248 Min: 682 Max: 168072 Err: 12806 (86.46%) 

summary + 239 in 114s = 2.1/s Avg: 47256 Min: 38723 Max: 88772 Err: 236 (98.74%) Active: 440 Started: 1500 Finished: 1060 

summary = 15051 in 1469s = 10.2/s Avg: 76771 Min: 682 Max: 168072 Err: 13042 (86.65%) 
summary + 264 in 115s = 2.3/s Avg: 48766 Min: 40408 Max: 87471 Err: 263 (99.62%) Active: 430 Started: 1500 Finished: 1070 

summary = 15315 in 1499s = 10.2/s Avg: 76289 Min: 682 Max: 168072 Err: 13305 (86.88%) 
summary + 111 in 111s = 1.0/s Avg: 55518 Min: 40488 Max: 98316 Err: 108 (97.30%) Active: 422 Started: 1500 Finished: 1078 

summary = 15426 in 1530s = 10.1/s Avg: 76139 Min: 682 Max: 168072 Err: 13413 (86.95%) 
summary + 163 in 129s = 1.3/s Avg: 72461 Min: 58026 Max: 111970 Err: 159 (97.55%) Active: 405 Started: 1500 Finished: 1095 

summary = 15589 in 1559s = 10.0/s Avg: 76101 Min: 682 Max: 168072 Err: 13572 (87.06%) 
summary + 113 in 141s = 0.8/s Avg: 78260 Min: 69917 Max: 118153 Err: 112 (99.12%) Active: 386 Started: 1500 Finished: 1114 

summary = 15702 in 1590s = 9.9/s Avg: 76116 Min: 682 Max: 168072 Err: 13684 (87.15%) 
summary + 104 in 159s = 0.7/s Avg: 93311 Min: 85408 Max: 146444 Err: 99 (95.19%) Active: 350 Started: 1500 Finished: 1150 

summary = 15806 in 1620s = 9.8/s Avg: 76229 Min: 682 Max: 168072 Err: 13783 (87.20%) 
summary + 151 in 173s = 0.9/s Avg: 91366 Min: 85043 Max: 159224 Err: 147 (97.35%) Active: 306 Started: 1500 Finished: 1194 

summary = 15957 in 1650s = 9.7/s Avg: 76373 Min: 682 Max: 168072 Err: 13930 (87.30%) 
summary + 178 in 186s = 1.0/s Avg: 84192 Min: 56634 Max: 165018 Err: 165 (92.70%) Active: 227 Started: 1500 Finished: 1273 
summary = 16135 in 1679s = 9.6/s Avg: 76459 Min: 682 Max: 168072 Err: 14095 (87.36%) 

summary + 208 in 89s = 2.3/s Avg: 44723 Min: 25609 Max: 63280 Err: 193 (92.79%) Active: 103 Started: 1500 Finished: 1397 
summary = 16343 in 1709s = 9.6/s Avg: 76055 Min: 682 Max: 168072 Err: 14288 (87.43%) 
+0

檢查您正在用於負載生成的機器的系統實用程序。也許它無法承受那麼多的負擔。 – 2014-09-26 11:42:32

回答

0

展望彙總程序的結果,你得到90%左右的失敗。不太可能,這是預期的。因此,我建議如下:

  1. 檢查jmeter.log文件的任何警告或錯誤
  2. 請確保您已禁用所有聽衆
  3. 運行具有更少數量的線程測試,直到錯誤開始出現。檢查應用程序日誌以查看問題所在。作爲選項,您可以通過設置jmeter.save.saveservice.response_data.on_error=true屬性user.propertiesjmeter.properties文件,暫時告訴JMeter存儲失敗樣本的響應數據。
  4. 請確保您遵循的建議從JMeter Performance and Tuning Tips
  5. 監控服務器和負載生成器(JMeter)機器的健康狀況。如果負載生成器無法創建此類負載,則可能需要考慮切換到distributed testing
+0

不,它也發生了0%的失敗結果。在非gui模式下沒有任何動作發生4個小時,似乎jmeter掛起了。如果像這樣的事情發生,我該如何強制停止在非GUI模式下測試,因爲測試不會在給定的時間內停止? – 2014-10-01 04:39:16