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

查看:251
本文介绍了非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. 将您的HTTP请求的实现"更改为HTTPClient4
  2. 将以下两行添加到 user.properties 文件中(通常位于JMeter安装目录的/bin文件夹下)

  1. Change "Implementation" of your HTTP Requests to HTTPClient4
  2. 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天全站免登陆