0
votes

i am using j-meter for load test of a server accessing REST api using POST Https. and it is returning following errors.

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

or

Response code: Non HTTP response code: java.net.SocketException Response message: Non HTTP response message: Unrecognized Windows Sockets error: 0: recv failed

or

Response code: Non HTTP response code: java.net.ConnectException Response message: Non HTTP response message: Connection timed out: connect

though load test is successful with http call.

can any one help me to tell the exact issue? whether it is server side issue or client side?

how to fix this?

2

2 Answers

0
votes

It might an issue with IPv6 stack, try forcing JVM to use IPv4 addresses by adding the next line to system.properties file (located in "bin" folder of your JMeter installation)

java.net.preferIPv4Stack=true

alternatively you can pass the above property via -D command-line argument like:

jmeter -Djava.net.preferIPv4Stack=true -n -t test.jmx -l result.jtl

More information:


It might also be a case of using port below 1024 on Windows as non-administrator user, try configuring your application server to run on port above 1024 (default port for HTTPS is 443). Also double check that port 443 (or whatever) is not being used by anything else (for example Skype likes to bind to port and 443)

0
votes

Issue is resolved by changing the SSL configuration in jmeter.properties file. it was due to the mismatch of handshaking protocol at server and client side. jmeter was set with all SSL flavors to handshake with server. its the trick.