-
1. Re: Modeshape 5 open database connections
hchiorean Dec 23, 2016 1:28 AM (in response to mohideen)When ran outside of Wildfly, the DB connections used by ModeShape are provided by HikariCP (https://brettwooldridge.github.io/HikariCP/).
So to answer your question, afaik this is the way Hikari behaves: it uses a maximum number of idle connections (based on the poolSize param) and if any of them are unused, it *should* discard them based on the idleTimeout setting (currently this is not configurable via ModeShape and is set to 1 minute).
You can see the code here: modeshape/DataSourceManager.java at master · ModeShape/modeshape · GitHub
-
2. Re: Modeshape 5 open database connections
mohideen Dec 23, 2016 8:22 AM (in response to hchiorean)Thanks for your quick reply! I will investigate the HikariCP behavior.
-
3. Re: Modeshape 5 open database connections
illia.khokholkov Mar 3, 2017 2:32 PM (in response to mohideen)Where did your investigation land? Thank you.
-
5. Re: Modeshape 5 open database connections
mohideen Mar 23, 2017 10:51 AM (in response to mohideen)Resolved in Modeshape 5.4 with changes from [MODE-2674] Add the ability to configure the minIdle property for HikariCP - JBoss Issue Tracker