Hi,
I’m running into some handshake errors in my test when logging level = DEBUG (writing to both console and file). When logging level = INFO or WARN, then the same test, with the same parameters, on the same servers do not have handshake errors. It’s hard to believe but I’ve run and rerun the tests many times, and I’m getting this result.
Has anyone else experience this? What would be the cause? Is Gatling too busy on the client side to handle the TLS handshake?
Here’s the stack trace:
java.net.ConnectException: handshake timed out
at org.asynchttpclient.netty.channel.NettyConnectListener.onFailure(NettyConnectListener.java:162)
at org.asynchttpclient.netty.channel.NettyConnectListener$1.onFailure(NettyConnectListener.java:133)
at org.asynchttpclient.netty.SimpleFutureListener.operationComplete(SimpleFutureListener.java:26)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:514)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:507)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:486)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:427)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:129)
at io.netty.handler.ssl.SslHandler.notifyHandshakeFailure(SslHandler.java:1238)
at io.netty.handler.ssl.SslHandler.access$800(SslHandler.java:160)
at io.netty.handler.ssl.SslHandler$5.run(SslHandler.java:1386)
at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:120)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:408)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:455)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLException: handshake timed out
at io.netty.handler.ssl.SslHandler.handshake(…)(Unknown Source)
I’m also not making that many requests to the system under test:
[info] ================================================================================
[info] ---- Global Information --------------------------------------------------------
[info] > request count 2581 (OK=2489 KO=92 )
[info] > min response time 0 (OK=22 KO=0 )
[info] > max response time 24949 (OK=24949 KO=0 )
[info] > mean response time 4307 (OK=4466 KO=0 )
[info] > std deviation 4780 (OK=4794 KO=0 )
[info] > response time 50th percentile 3041 (OK=3156 KO=0 )
[info] > response time 75th percentile 5207 (OK=5327 KO=0 )
[info] > response time 95th percentile 17126 (OK=17437 KO=0 )
[info] > response time 99th percentile 22672 (OK=22747 KO=0 )
[info] > mean requests/sec 19.261 (OK=18.575 KO=0.687 )
[info] ---- Response Time Distribution ------------------------------------------------
[info] > t < 800 ms 326 ( 13%)
[info] > 800 ms < t < 1200 ms 183 ( 7%)
[info] > t > 1200 ms 1980 ( 77%)
[info] > failed 92 ( 4%)
[info] ---- Errors --------------------------------------------------------------------
[info] > j.n.ConnectException: handshake timed out 92 (100.0%)
[info] ================================================================================
Thanks in advance,
Nguyen