Report this

What is the reason for this report?

JMeter 4.0 : While recording java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source)

Posted on February 16, 2018

I’m using JMeter 4.0 software. I used recording template for the same. I also set proxy (i.e. localhost) and Port (8888 which is also set in JMeter HTTPS Test Script recorder) in a browser(Internet Explorer).

After that I click on start button in JMeter popup appeared (Certificate). I also install the certificate and import that in a browser.

but facing following issue in browser.

java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) 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.proxy.Proxy.run(Proxy.java:235)



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Just a quick follow up on this question. Here are some general suggestions that you could follow:

  1. Double-check your proxy settings in both JMeter and your browser (Internet Explorer). Make sure that the proxy host is set to “localhost” and the port is set to “8888” (or the port you’ve configured in JMeter).

  2. Clear your browser’s cache and restart the browser.

  3. Ensure that you have installed the JMeter Certificate Authority (CA) certificate correctly in your browser correctly: https://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder

  4. Update JMeter to the latest version.

  5. If you are testing a site that uses HTTPS, make sure to add an “HTTP(S) Test Script Recorder” element in your JMeter test plan and configure it properly to handle SSL/TLS connections.

  6. Check your system’s firewall or antivirus settings to ensure that they are not blocking JMeter’s network connections.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.