I fail to figure out the difference between removeAbandoned and eviction. I read somewhere that removeAbandoned was deprecated, but it is not mentionned anywhere in the official doc (http://commons.apache.org/dbcp/configuration.html).
So, if someone could enlighten me, it would be greatly appreciated 🙂
Thanks!
They mean different things:
Eviction does not indicate a problem with your code (it’s just that the application needs fewer connections after a burst of connections) but abandoned connections means that the application is holding on to a connection and is not returning to the pool.