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,问题解决。
这应该是由于服务器端的负载过高以及网络带宽占满等因素导致响应延迟加长,而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,问题解决。
相关文章推荐
- 启动Genymotion时报错Failed to initialize backend EGL display
- Pick a Self-Contained Set of Tablespaces(自包含)
- fail to register notify:Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串"
- Gem总结
- Baidu地图之removeEventListener失效问题
- gtk程序运行报 main_loop!=NULL 错误的解决办法
- gtk程序运行报 main_loop!=NULL 错误的解决办法
- gtk程序运行报 main_loop!=NULL 错误的解决办法
- 奔跑吧,飞邮!TurboMail全面进军移动邮件系统
- Partition(hdu4651)2013 Multi-University Training Contest 5
- hdu 4308 Saving Princess claire(BFS)
- Partition(hdu4651)2013 Multi-University Training Contest 5----(整数拆分一)
- Unable to open log device ‘/dev/log/main’: No such file or directory
- 万全R630服务器组装RAID5阵列
- 由现实世界到抽象世界
- AIX PASE 和unix
- error: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) Unable t
- hdu 3938 Portal(并查集+离线+kruskal)2011 Multi-University Training Contest 10
- Airbnb欺诈预测机器学习模型设计:准确率和召回率的故事
- weblogic.descriptor.DescriptorException: Unmarshaller failed