Jmeter is throwing Non HTTP response code

Viewed 27

I am getting the below error message from Jmeter v5.4.3 (after all the users ramped up) in the middle of the test:

Response code:Non HTTP response code: java.net.SocketException
Response message:Non HTTP response message: Operation timed out

I am getting it most of the times I run it. Any suggestions? Connect Timeout limits are already set in HTTP Request Default

1 Answers

It indicates that your server fails to respond within the bounds of the time frame JMeter waits for response

If it happens only under the load then there is nothing you can do from JMeter's side apart from setting/increasing connect and response timeouts in the HTTP Request Defaults. If you leave the timeouts empty it means "no timeout" so JMeter will wait for the response forever, but underlying JVM or OS can have its own connection timeouts defined.

You can also consider enabling debug logging for Java network stack by adding the next line to system.properties file (lives in "bin" folder of your JMeter instalallation)

javax.net.debug=all

and increasing JMeter logging verbosity for JMeter HTTP components by adding the next line to log4j2.xml file:

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

in general jmeter.log file is a good troubleshooting option

Related