1.3.2. C3P0 Connection Pool


C3P0 is an open source JDBC connection pool that is distributed with Hibernate. C3P0 is available in the lib/ directory. Hibernate uses org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider for connection pooling if the hibernate.c3p0 connection properties are set.
The following table contains hibernate.c3p0 connection properties to set to use the c3p0 connection pool in Hibernate:
Expand
Table 1.7. Configuration Properties for the C3p0 Connection Pool
Property Details
hibernate.c3p0.min_size The minimum number of concurrent connections per connection identity.
hibernate.c3p0.max_size The maximum number of concurrent connections per connection identity.
hibernate.c3p0.timeout The period an idle connection is allowed to remain in the connection pool before it is closed and removed from the pool.
hibernate.c3p0.max_statements The maximum size of the statement cache.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat