JMeter停止发送请求

时间:2014-09-26 08:25:52

标签: jmeter

我为1500个用户运行了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%)

1 个答案:

答案 0 :(得分:0)

查看摘要结果,您可以获得大约90%的失败率。不太可能是预期的。所以我建议如下:

  1. 检查jmeter.log文件是否有任何警告或错误
  2. 确保您已禁用所有侦听器
  3. 使用较少数量的线程运行测试,直到错误开始发生。检查应用程序日志以查看问题所在。作为选项,您可以通过在 user.properties jmeter.properties 文件中设置jmeter.save.saveservice.response_data.on_error=true属性,临时告诉JMeter存储失败样本的响应数据。
  4. 确保您遵循JMeter Performance and Tuning Tips
  5. 的建议
  6. 监控服务器和负载生成器(JMeter)机器运行状况。如果负载生成器无法创建此类负载,则可能必须考虑切换到distributed testing