Jmeter(the target server failed to respond)问题

采用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选择HttpClient4app

 

设置之后重启Jmeter,问题解决。高并发

相关文章
相关标签/搜索