HikariCP

A high-performance JDBC connection pool.

View project onGitHub

It’s Faster.

There is nothing faster. There is nothing more correct. HikariCP is a “zero-overhead” production-quality connection pool.

Using a stub-JDBC implementation to isolate and measure the overhead of HikariCP, comparative benchmarks were performed on a commodity PC. The next fastest connection pool was BoneCP.

And how does it achieve such incredible performance? If you’re really technically minded, read here. Otherwise, just drop it in and let your code run like its pants are on fire.

Java 8 maven artifact:

<dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP</artifactId>
    <version>2.2.5</version>
    <scope>compile</scope>
</dependency>

Java 6 and Java 7 maven artifact:

<dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP-java6</artifactId>
    <version>2.2.5</version>
    <scope>compile</scope>
</dependency>

Initialization and Configuration

See the main project page for initialization examples.

You can find information about the configuration properties here.

Support

Google discussion group HikariCP here.

Requirements

  • Java 6 and above
  • Javassist 3.18.1+ library
  • slf4j library