we've been happily using jboss for 4 months in production now,
but it seems we have imported some major problems with our latest db-upgrade. Our Oracle-sessions fill up our memory, and because they are never closed, the database is getting slower and slower.
I'm currently searching for a connection-pooling parameter that lets me do exactly the following: configure a timespan, that indicates how old sessions can be before they are discarded instead of returned to the pool.
It is not important to
- Check this while connection in use
- Check this before connection is handed out
It is not an option to use the connection-lifetime-property of the database, since this will cut our connections while working, as it is a hard-limit.
this is the pseudocode of how this is handled in .net-databinding:
Check if time the connection has been open is greater than Connection Lifetime if it is, throw the connection away
Else Put connection on the pool