Reputation: 139
I'm using Gatling for overload tests and I'm having a lot of errors when I use the HTTPS urls of my platform.
I get :
j.n.s.SSLException: handshake timed out
j.n.c.ClosedChannelException
j.n.s.SSLException: failure when writing TLS control frames
.When I call the same platform without HTTPS (in HTTP so), the same simulation is 100% OK.
We are trying to understand why there are these errors and have tried some configurations:
.shareConnections
option in httpProtocol
definitionsslEnabledProtocols
and sslEnabledCipherSuites
into gatling.conf. All others ahc
configurations are commented :sslEnabledProtocols = [TLSv1.2]
sslEnabledCipherSuites = [TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384]
But no success... Same results...
Is there a chance that the problem is a Gatling configuration ? Or is it a platform configuration problem ?
For information, my simulation looks like that :
setUp(
Scenario1.scn
.inject(
rampUsersPerSec(1) to 3 during 5 minutes,
constantUsersPerSec(3) during 5 minutes
)
.protocols(httpProtocolSite1),
Scenario2.scn
.inject(
rampUsersPerSec(1) to 3 during 5 minutes,
constantUsersPerSec(3) during 5 minutes
)
.protocols(httpProtocolSite2),
Scenario3.scn
.inject(
rampUsersPerSec(1) to 3 during 5 minutes,
constantUsersPerSec(3) during 5 minutes
)
.protocols(httpProtocolSite3)
)
And my scenarii logic is to load a first html page, make a pause (2 minutes) and load a second html page.
Thank you for any information that could be useful on these issues !
Upvotes: 0
Views: 5465
Reputation: 378
You can specify this property value in cli like (gradle): -Dgatling.ssl.handshakeTimeout=20000 The same way you can ovewrite default values in gatling as per the docs:
https://gatling.io/docs/current/general/configuration/
The file with settings is under:
https://github.com/gatling/gatling/blob/main/gatling-core/src/main/resources/gatling-defaults.conf
Upvotes: 0
Reputation: 6623
You're getting your issue wrong: you're blaming the messenger (Gatling)!
Your system under load is simply unable to deal with the load you're throwing at it.
2 possibilities:
shareConnections
(otherwise, don't use that, your test would be meaningless).Upvotes: 3