采用JMeter做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性能测试NoHttpResponseException (the target server failed to respond)

 

原文链接:https://blog.csdn.net/just_lion/article/details/46923775

相关文章:

  • 2021-07-15
  • 2021-04-26
  • 2021-09-09
  • 2022-12-23
  • 2021-12-15
  • 2021-10-21
猜你喜欢
  • 2022-01-23
  • 2021-05-25
  • 2022-12-23
  • 2021-12-15
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案