您的位置:首页 > 大数据 > 人工智能

Jmeter性能测试NoHttpResponseException (the target server failed to respond)

2015-07-17 10:39 781 查看
采用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,问题解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: