Connection pooling options with JDBC: DBCP vs C3P0

前端 未结 16 1847
遥遥无期
遥遥无期 2020-11-22 06:17

What is the best connection pooling library available for Java/JDBC?

I\'m considering the 2 main candidates (free / open-source):

  • Apache DBCP - http:/
16条回答
  •  囚心锁ツ
    2020-11-22 07:15

    Dbcp is production ready if configured properly.

    It is for example used on a commerce Website of 350000 visitors/ day and with pools of 200 connections.

    It handles very well timeouts provided you configure it correctly.

    Version 2 is on progress and it has a background which makes it reliable since Many Production problems have been tackled.

    We use it for our batch server solution and it has been running hundreds of batches That work on millions of lines in database.

    Performance tests run by tomcat jdbc pool show it has better performance than cp30.

提交回复
热议问题