NoHttpResponseException
生活随笔
收集整理的這篇文章主要介紹了
NoHttpResponseException
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
采用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,問題解決。
轉載于:https://www.cnblogs.com/jtestroad/p/8461792.html
總結
以上是生活随笔為你收集整理的NoHttpResponseException的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 日常shell使用小结
- 下一篇: 使用pyspider爬取巨量淘宝MM图片