Would you guys be open to a patch to implement a periodic cleanup of abandoned connections the following logic can cause abandoned connections to sit around forever, just because you are not hitting the max in the pool. Using a DB like postgres that creates a process for each connection, this is a waste of resources, and the only way to trigger the abandoned cleanup is to try to get to max number of connections.

       if (config != null
               && config.getRemoveAbandoned()
               && (getNumIdle() < 2)
               && (getNumActive() > getMaxActive() - 3) ) {
           removeAbandoned();
       }

Let me know, and if yes, I will provide a patch

Filip

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to