Jmeter性能测试NoHttpResponseException (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选择HttpClient4


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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值