Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non HTTP response message: The target server failed to respond: Is my server failing to handle load

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

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.

like image 494
Yeasin Hossain Avatar asked Jan 14 '15 12:01

Yeasin Hossain


1 Answers

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

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

Socket closed

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

So

  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
    
  3. In hc.parameters file (also lives under JMeter's /bin folder) uncomment the following line:

    http.connection.stalecheck$Boolean=true
    

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

like image 78
Dmitri T Avatar answered Oct 21 '22 17:10

Dmitri T