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.

Just drop it in and let your code run like its pants are on fire.

Java 7 and Java 8 maven artifact:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP</artifactId>
    <version>2.5.1</version>
    <scope>compile</scope>
</dependency>

_Java 7 and Java 8 maven artifact:_

    <dependency>
        <groupId>com.zaxxer</groupId>
        <artifactId>HikariCP-java7</artifactId>
        <version>2.4.9</version>
        <scope>compile</scope>
    </dependency>

Java 6 maven artifact:

1
2
3
4
5
6
<dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP-java6</artifactId>
    <version>2.3.13</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
  • slf4j library