1

I am getting following error on JMeter for internal site. Site opens successfully on browser but when I set it up on JMeter then getting below error. My company no longer having proxies in our environment.

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

Internal site I am trying https://peoplesoftportaltest/Default.asp? https://peoplesoftportaltest/SA_QUESTIONNAIRE.asp

I have done the following setting :

user.properties : httpclient4.retrycount=1 and hc.parameters.file=hc.parameters hc.parameters : http.connection.stalecheck$Boolean=true

2 Answers 2

0

Try connecting to your website using OpenSSL and see protocol version and algorithms used. Alternatively use a sniffer tool like Wireshark to capture SSL handshare details from the browser.

Then enable JMeter debug logging for Apache HttpComponents by adding the next line to log4j2.xml file

<Logger name="org.apache.http" level="debug" />

and Java SSL/TLS connections by adding the next line to system.properties file

javax.net.debug=all

and see jmeter.log file and stdout for the protocol and cypher used.

Amend JMeter's configuration so it would do the same as the real browser and it should resolve your problem.

Sign up to request clarification or add additional context in comments.

Comments

0

May not be your issue but I've just had quite a bit of fun with this error on Apache JMeter (5.6.3).

If using the HTTP Header Manager, make sure you have no rogue header entries in it.

Those will cause the same issue, and the Sampler result (in a View Results Tree listener) can show:

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

The Response data in that same listener can simply be

java.net.SocketException: Connection reset

    at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:328)
    at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:355)
    ...

If you see something like this (line 2 in the below snippet) in the Request -> Request Headers of a View Results Tree listener for e.g., it is a dead giveaway that you have an empty header row in the HTTP Header Manager

Content-Type: application/json
: 
Content-Length: 435

Just delete that empty header row from the HTTP Header Manager

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.