Apparent connection leak detected with Hikari CP

You’re using a recent version of Hikari CP and the connection leak resolves by itself (as visible in your logs). As noted by @M. Deinum the issue can be caused in a low value of hikari.leakDetectionThreshold property (your “in” query can take much more than 2 seconds). Try to increase it to 60000, then do some tuning based on your response time.

Leave a Comment