How to fix the error “SSLHandshakeException” when load testing Google Cloud Load balancer with an HTTPS

google-cloud-http-load-balancergoogle-cloud-platformgoogle-compute-enginehttpsload-testing

When I perform a load testing to my website over HTTPS, I received multiples errors related with SSL Handshake when I simulate a high amount of concurrent users (>500 / sec).

Here are the errors that I received:

Error #1

javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

Error #2

javax.net.ssl.SSLException: Socket closed

Error #3

javax.net.ssl.SSLException: Read timed out

The thing is, everything is managed by the GCP, especially with the Load Balancer where my front-end is HTTPS associated with a valid certificate.

Also, the capacity of my back-end seems high enough to support everything. It is like the bottleneck is my Load Balancer.

The tests are made directly from my computer using JMeter.

So, what cause this problem and how can I fix it?

Best Answer

as far as I can understand not all the request show the errors. So maybe there some instances that are not configured as the rest. You could validate if all your VMS supports the same TLS version as your JVM. Got this idea by going to here .