Pragati Patil
Pragati Patil

Reputation: 11

why getting socket closed error after running script by jmeter?

I am getting "Non HTTP response code: java.net.SocketException Response message: Non HTTP response message: Connection reset" this type of error after running jmeter script

Upvotes: 1

Views: 8088

Answers (1)

Dmitri T
Dmitri T

Reputation: 168022

I bet that you're experiencing the problem described in Connection Reset since JMeter 2.10 ? wiki page

So I would recommend to take the next steps:

  1. Switch "Implementation" of all your HTTP Request Samplers to "HttpClient4". The best way to do this is using HTTP Request Defaults so you will have to change the value in just one place.
  2. As per the wiki page add the next 2 lines to user.properties file (lives under /bin folder of your JMeter installation)

    httpclient4.retrycount=1
    hc.parameters.file=hc.parameters
    
  3. Add the next line to hc.parameters file (same location, /lib folder)

    http.connection.stalecheck$Boolean=true 
    
  4. Remember to restart JMeter after making these changes, properties change is not dynamic, they're being picked up upon JMeter startup.

Hope this helps.

Upvotes: 3

Related Questions