Reputation: 1677
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!
Upvotes: 12
Views: 6962
Reputation: 3273
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.
Upvotes: 28