Connection pooling options with JDBC: DBCP vs C3P0

前端 未结 16 1866
遥遥无期
遥遥无期 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 06:51

    I invite you to try out BoneCP -- it's free, open source, and faster than the available alternatives (see benchmark section).

    Disclaimer: I'm the author so you could say I'm biased :-)

    UPDATE: As of March 2010, still around 35% faster than the new rewritten Apache DBCP ("tomcat jdbc") pool. See dynamic benchmark link in benchmark section.

    Update #2: (Dec '13) After 4 years at the top, there's now a much faster competitor : https://github.com/brettwooldridge/HikariCP

    Update #3: (Sep '14) Please consider BoneCP to be deprecated at this point, recommend switching to HikariCP.

    Update #4: (April '15) -- I no longer own the domain jolbox.com

提交回复
热议问题