JMeter error Response code: Non HTTP response code: java.net.SocketException Response message: Non HTTP response message: Connection reset

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JMeter error Response code: Non HTTP response code: java.net.SocketException Response message: Non HTTP response message: Connection reset

UserJMeter999
JMeter during load test executions getting below error
Already tried some suggestion from different post still getting error
1. JVM set HEAP=-Xms10g -Xmx26g -XX:MaxMetaspaceSize=2048m
2.  user.properties : httpclient4.retrycount=1 and
hc.parameters.file=hc.parameters
3. hc.parameters : http.connection.stalecheck$Boolean=true

Response code: Non HTTP response code: java.net.SocketException
Response message: Non HTTP response message: Connection reset


Test with 200 users with 200 seconds ramp up and duration of test =30 Mins

java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:210)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
        at sun.security.ssl.InputRecord.read(InputRecord.java:503)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
        at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
        at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
        at
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
        at
org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
        at
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
        at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
        at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
        at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
        at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
        at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
        at
org.apache.jmeter.protocol.http.sampler.hc.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:199)
        at
org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.receiveResponseHeader(MeasuringConnectionManager.java:212)
        at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
        at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
        at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
        at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
        at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
        at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
        at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:697)
        at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:455)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
        at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
        at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
        at java.lang.Thread.run(Thread.java:748)




--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: JMeter error Response code: Non HTTP response code: java.net.SocketException Response message: Non HTTP response message: Connection reset

shettyd
Hi
the error represents the fact that the connection between your
client(Jmeter) and your application broke .
The next thing you need to see is whether its your client that is getting
limited or your application.
So in your case if you test 100 threads and you dont get the issue and you
try 200 and you get the issue then you could try 2 different Jmeters(as
independent as possible) running 100 each. if you still get your issue then
its likely your application cant handle the load (or is timing out ) rather
than your Jmeter test client. if you dont get the issue then its more
likely its your test client  that has a problem. But thats very roughly
speaking - You need a good idea of your network infrastructure too if
neither of the above seems to be a problem - firewall, OS settings ,
timeouts are also possible causes


On Wed, Jan 29, 2020 at 10:22 AM UserJMeter999 <[hidden email]>
wrote:

> JMeter during load test executions getting below error
> Already tried some suggestion from different post still getting error
> 1. JVM set HEAP=-Xms10g -Xmx26g -XX:MaxMetaspaceSize=2048m
> 2.  user.properties : httpclient4.retrycount=1 and
> hc.parameters.file=hc.parameters
> 3. hc.parameters : http.connection.stalecheck$Boolean=true
>
> Response code: Non HTTP response code: java.net.SocketException
> Response message: Non HTTP response message: Connection reset
>
>
> Test with 200 users with 200 seconds ramp up and duration of test =30 Mins
>
> java.net.SocketException: Connection reset
>         at java.net.SocketInputStream.read(SocketInputStream.java:210)
>         at java.net.SocketInputStream.read(SocketInputStream.java:141)
>         at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
>         at sun.security.ssl.InputRecord.read(InputRecord.java:503)
>         at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
>         at
> sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
>         at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
>         at
> org.apache.http.impl.io
> .AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
>         at
> org.apache.http.impl.io
> .SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
>         at
> org.apache.http.impl.io
> .AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
>         at
>
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
>         at
>
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
>         at
> org.apache.http.impl.io
> .AbstractMessageParser.parse(AbstractMessageParser.java:259)
>         at
>
> org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
>         at
>
> org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
>         at
>
> org.apache.jmeter.protocol.http.sampler.hc.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:199)
>         at
>
> org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.receiveResponseHeader(MeasuringConnectionManager.java:212)
>         at
>
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
>         at
>
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
>         at
>
> org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
>         at
>
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
>         at
>
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
>         at
>
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
>         at
>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:697)
>         at
>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:455)
>         at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
>         at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
>         at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
>         at
>
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
>         at
>
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
>         at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
>         at java.lang.Thread.run(Thread.java:748)
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>