On 03.06.2015 21:57, Mark Thomas wrote:
On 03/06/2015 20:50, Christopher Schultz wrote:
Bjørn,
On 6/3/15 2:52 PM, Bjørn T Johansen wrote:
Just saw a discussion about Tomcat DBCP 8.0.18 issue, where Tomcat
JDBC pooling vs Commons DBCP 2 pooling was briefly discussed.. So
now I am a bit curious... I am using Tomcat JDBC, because I read
somewhere that this was better than DBCP (guess they were talking
about DBCP 1 then). Does this mean I should be using DBCP 2
instead of Tomcat JDBC with my Tomcat 8.x installations?
"If it ain't broke, don't fix it."
Because of it being the default in Tomcat, DBCP2 is likely to have
much more mileage under its belt than tomcat-jdbc, so edge cases and
strange issues are more likely to be discovered and solved.
It is probably around 50/50 at the moment since tomcat-jdbc has been
around longer but at the moment the balance is shifting towards DBCP2.
If you want to know about performance, you'll have to benchmark in
your own environment -- and make sure you use a valid test case. Don't
just test how long it takes to check-out 1M connections and return
them to the pool in a single thread.
+1.
In terms of raw speed for default settings tomcat-jdbc will be faster.
Once you configure them for comparable behaviour the difference is a
lot
less.
I think it's a matter of preference for the most part.
At the moment, yes.
If I were you, I'd stick with my existing configuration, if only
because you know it works. ;)
+1
Longer term, I'd be looking towards DBCP 2 - mainly because of the
general lack of activity on tomcat-jdbc.
Mark
Ok... Guess I'll continue using Tomcat JDBC for now but change to DBCP 2
when I get the time to test.... Thx... :)
BTJ
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org