非 HTTP 响应消息:目标服务器未能响应:我的服务器无法处理负载 [英] Non HTTP response message: The target server failed to respond: Is my server failing to handle load

查看:28
本文介绍了非 HTTP 响应消息:目标服务器未能响应:我的服务器无法处理负载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 jmeter & 准备了一个 jmx 文件在 blazemeter 上运行该测试用例以测试我服务器上的负载.测试完成后,我可以看到我的一项服务失败了.虽然不是所有的时间,但有时.在 blazemeter 上的错误选项卡中,我可以看到这是给

I have a prepared a jmx file using jmeter & ran that test case on blazemeter to test load on my server. After the test is done, I can see that one of my services are failing. Though not all the time, but some times. And in the error tab on blazemeter, i can see that is is giving

Non HTTP response message: The target server failed to respond

我不确定,是我的服务器无法处理负载,还是其他原因.在我的设置中,线程是 50.任何人都可以帮助我,这是因为服务器无法处理加载.提前致谢.

I am not sure, that is my server failing to handle the load, or is it something else. In My settings, thread is 50. Can any one please help me that, is this because of server is failing to handle to load. Thanks in advance.

推荐答案

看起来您正面临 从 JMeter 2.10 开始重置连接? Wiki 文章.

It looks like that you're facing the problem described in Connection Reset since JMeter 2.10 ? Wiki article.

如果您最近升级到 JMeter 2.10 或 2.11,您可能已经注意到此类错误有所增加:

If you upgraded recently to JMeter 2.10 or 2.11, you may have noticed increased errors of this type:

套接字关闭

非HTTP响应码:org.apache.http.NoHttpResponseException(目标服务器响应失败)

Non HTTP response code: org.apache.http.NoHttpResponseException (the target server failed to respond)

所以

  1. 更改实施"您对 HTTPClient4 的 HTTP 请求

  1. Change "Implementation" of your HTTP Requests to HTTPClient4

将接下来的 2 行添加到 user.properties 文件(通常位于 JMeter 安装的/bin 文件夹下)

Add the next 2 lines to user.properties file (usually lives under /bin folder of your JMeter installation)

httpclient4.retrycount=1
hc.parameters.file=hc.parameters

  • hc.parameters 文件(也位于 JMeter 的/bin 文件夹下)取消注释以下行:

  • In hc.parameters file (also lives under JMeter's /bin folder) uncomment the following line:

    http.connection.stalecheck$Boolean=true
    

  • 有关不同 JMeter 属性以及设置和更改它们的方法的更多信息,请参阅 Apache JMeter属性自定义指南

    For more information on different JMeter properties and ways of setting and altering them refer to Apache JMeter Properties Customization Guide

    这篇关于非 HTTP 响应消息:目标服务器未能响应:我的服务器无法处理负载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆