0

Configuration:Jmeter 3.0 and OS:Linux jdk:1.8

When I run a https(REST Api) request, View Results Tree shows:

Response code:Non Http Response code:java.net.socketException

Response message:Connection Reset 

How can I fix this issue?

sameer joshi
  • 377
  • 2
  • 8
  • 27

2 Answers2

1

Change Implementation of all your HTTP Request samplers to HttpClient4.

Add the following properties in user.properties file which located under /bin folder of your JMeter installation:

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

Add the next line to hc.parameters file (same location, JMeter's /bin folder)

http.connection.stalecheck$Boolean=true

Restart JMeter.

  • Additionally, Use KeepAlive checkbox in the HTTP Request Sampler/Defaults.

Also these thread#1 and thread#2 might help.

Community
  • 1
  • 1
Adnan
  • 2,931
  • 3
  • 23
  • 35
0

Connection reset might indicate an issue on the server side or in an intermediate component of your architecture.

See https://stackoverflow.com/a/31781529/460802

Community
  • 1
  • 1
UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116