-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All hikaricp connection are in use and never recovery util restart #467
Comments
@jilen Did you get an answer for this in the Slick discussion group? |
Seems related to slick/slick#1274 |
I have this exact issue, but I am not using slick. HikariCP: 2.4.3 Hikari Debug Log: https://gist.github.com/kosakriszi/7bfca3f844bb6f4d7a47 What's interesting to me is that this issue only occurs when executing an SQL insert statement. All other cases seem to be functioning properly. |
@kosakriszi are you sure your code closes connections correctly? AFAICT in HikariCP You can use the leakDetectionThreshold parameter to get stack traces in the log when a connection has been handed out too long compared to your average query duration. That way you can investigate your code to make sure it behaves correctly. |
@jnehlmeier Thanks for the reply! I am always sure to close my connections after each query, so I do not believe that that is the issue. I will try out the leakDetectionThreshold parameter, and see what more information I can gather. |
I actually had a rouge connection that I wasn't closing, so my issue is invalidated. |
StackOverflow Link
Full log https://gist.github.com/jilen/f4edf44f4013ffe7a1eb
The text was updated successfully, but these errors were encountered: