-
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
Idle connections are not getting released when used with Try-with-resources #2215
Comments
|
The problem is that they are not being reused as well.. Those connections are stuck in that idle stage and not utilized for other transactions. Thus our total pool connections get exhausted when these stuck connections number become huge. |
What makes you think they are not reused? please note the default |
@quaff Basis of my understanding is presented by this screenshot as we have 4 pods running each with 10 minIdle... so total should be 40 but from yellow highlighted you can see it is 42 connections and also state change is more then 46 mins for these 2 connections.. Request help |
The total should be 40 to 200 because the |
@quaff |
Any suggestion is appreciated as issue still persists :( |
@VikChauhan20 Have you enabled the |
Facing issue where few select statements executed leaks connections in try with resource but code works for update and delete statements which too are in try with resource.
We are using postgresql DB - spring.datasource.driver-class-name=org.postgresql.Driver
Code snippet: PFA the code snippet.. few values changed for security purposes
Hikari Properties being used:
spring.datasource.hikari.minimumIdle=10
spring.datasource.hikari.maximumPoolSize=50
spring.datasource.hikari.idleTimeout=10000
spring.datasource.hikari.connectionTimeout=240000
spring.datasource.hikari.maxLifetime=300000
Error Screenshot -- Query in image is different but issue is same
Please help.
The text was updated successfully, but these errors were encountered: