Jmeter(the target server failed to respond)问题

原创
2016/07/08 09:55
阅读数 1K

采用JMeter2.13做Http性能测试时,在高并发请求的情况下,服务器端并无异常,但是Jmeter端报错NoHttpResponseException (the target server failed to respond)

这应该是由于服务器端的负载过高以及网络带宽占满等因素导致响应延迟加长,而Jmeter默认没有timout等待,导致出错。解决方案:

设置bin/jmeter.properties:

# Number of retries to attempt (default 0)
httpclient4.retrycount=3

# Idle connection timeout (ms) to apply if the server does not send Keep-Alive headers
httpclient4.idletimeout=30

在Jmeter test plan中的Http Request的Implementation选择HttpClient4

 

设置以后重启Jmeter,问题解决。

展开阅读全文
加载中

作者的其它热门文章

打赏
0
1 收藏
分享
打赏
0 评论
1 收藏
0
分享
返回顶部
顶部