TransWikia.com

JMeter: How to resolve javax.net.ssl.SSLHandshakeException Error

Software Quality Assurance & Testing Asked by user41420 on October 25, 2021

Tool – JMeter, version 5.1.1

I am testing an application with API request and I am getting an error:
javax.net.ssl.SSLHandshakeException for load test.

This issue occurs when I try to execute only load test with number of users simultaneously.
I have had a word with the Dev team and as per them there is no issue from server side configuration.

Can anyone help me resolve this issue. Appreciate quick feedback.

One Answer

Establishing an SSL session is a resource intensive process, you might want to check whether your server is overloaded, it might me the case it lacks resources like CPU, RAM, etc. when you put the load onto it hence it fails to respond to the handshake in a timely fashion.

You could consider using i.e. JMeter PerfMon Plugin to ensure that the server (and JMeter as well) have enough headroom to operate in terms of CPU, RAM, Disk, Network, etc. cause it might cause the problem

If the server/JMeter is/are not overloaded but you still experience the issue you can temporary enable debugging of SSL events by adding the next line to system.properties file (lives in "bin" folder of your JMeter installation)

javax.net.debug=ssl

JMeter restart will be required to pick the property up, once you restart JMeter and run your test you should see a lot of SSL-related information in the stdout.

More information: Java Secure Socket Extension (JSSE) Reference Guide

Answered by Dmitri T on October 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP