1

I have tried to do distributed testing with two servers for a request which requires two way SSL handshaking. This is working fine when we are not using remote hosts for testing

sh jmeter.sh -n -t sample_Load_Test/sample_test.jmx -l sample_report/Log/results.jtl -e -o sample_report/Dashboard/ 

Jmeter Success: Jmeter Success

But on trying to use the remote hosts for the same jmx file, the SSL handshake is failing. I have put the same same jmeter.p12 and truststore.jks in all the servers which are used for distribute testing. Command used:

 sh jmeter.sh -n -t sample_test/sample_load_test.jmx -l sample_report/Log/results.jtl -e -o sample_report/Dashboard/ -r -Jserver.rmi.ssl.disable=true

Please see the error that I am getting

Jmeter Failure: Jmeter Failure

<httpSample t="20" it="0" lt="0" ct="20" ts="1545068074631" s="false" lb="HTTP Request" rc="Non HTTP response code: javax.net.ssl.SSLHandshakeException" rm="Non HTTP response message: Received fatal alert: handshake_failure"

Does anyone knows what I am doing wrong here

Martin
  • 16,093
  • 1
  • 29
  • 48

1 Answers1

0

I can think of 2 possible causes:

  1. You use different JRE versions on master and slaves and they have different SSL configuration in terms of storing certificates. Make sure you use exactly the same Java runtime everywhere and configuration is the same.
  2. Your test relies on client certificates and on one of the slaves you don't have them defined in system.properties file or in SSL Manager make sure to use the same JMeter version and the same set of config files and external data files on each slave.

Get used to look into jmeter.log and/or jmeter-server.log files - in the majority of cases you should get the reason of the failure or unexpected behavior from the log.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Thank you @Dmitri T for the support. I dont know what went wrong yesterday with the test setup. But today I have make sure everything is common between slaves(jmeter version, java version, SSL trust store and keystore in both slaves, running the test using only one slave at a time and then do the combination). It is working perfectly as expected – Syamaprasad K B Dec 18 '18 at 10:01