# swaldman/c3p0

a mature, highly concurrent JDBC Connection pooling library, with support for caching and reuse of PreparedStatements.

Repository: https://github.com/swaldman/c3p0
Canonical: https://ross.abutalabs.com/products/c3p0
Homepage: http://www.mchange.com/projects/c3p0
Language: Java
License: NOASSERTION
License Family: other
Topics: connection-management, connection-pool, connection-pooling, java, jdbc
Last push: 2026-08-24T07:11:48+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5225, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1318, forks 343 (observed 2026-08-28T04:04:21.084583+00:00)

## What it is
c3p0 is a mature, highly concurrent JDBC connection pooling library for Java, with support for caching and reuse of PreparedStatements. It provides pooled DataSource implementations (e.g., ComboPooledDataSource) that wrap any JDBC driver, with extensive configuration, JMX management, and recovery/healing features.

## Use cases
- pool jdbc connections for a java web application
- cache and reuse preparedstatements to speed up queries
- replace raw driver usage with a pooled datasource
- configure connection pool sizing and idle timeouts
- monitor and manage database connection pools via jmx
- use a connection pool with hibernate
- recover from leaked or stale database connections

## When to choose
- you need a battle-tested, highly concurrent JDBC connection pool for a legacy or modern Java app
- you want PreparedStatement caching and fine-grained pool tuning
- you need JDK 7 compatibility or JMX-based pool administration

## When to avoid
- you are on a non-JVM stack
- you prefer a more modern pool like HikariCP for new projects and don't need c3p0's specific features
- you cannot run a version at or above 0.12.0 given the historical deserialization-gadget security issues

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, caching, concurrency, monitoring
- domain: databases, backend, developer-tools, performance
- platform: jvm, cross-platform
- tags: jdbc, connection-pooling, prepared-statement-cache, datasource, hibernate, jmx

## Member repositories
- swaldman/c3p0 (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:21.084583+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:48:10.153187+00:00, confidence not recorded.
  - readme: https://github.com/swaldman/c3p0 (fetched 2026-08-28T04:04:21.084583+00:00, sha 1fddbef42bcb)
  - homepage: http://www.mchange.com/projects/c3p0 (fetched 2026-08-29T12:06:48.472368+00:00, sha 425f7163479b)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/index.html (fetched 2026-08-29T12:06:48.485765+00:00, sha b8b133d0df72)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/com/mchange/v2/c3p0/ComboPooledDataSource.html (fetched 2026-08-29T12:06:48.487495+00:00, sha 7f6a8a233611)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/com/mchange/v2/c3p0/DataSources.html (fetched 2026-08-29T12:06:48.489241+00:00, sha 9629df42aa7a)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/com/mchange/v2/c3p0/PooledDataSource.html (fetched 2026-08-29T12:06:48.490925+00:00, sha f2e3d8e69dd6)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/com/mchange/v2/c3p0/C3P0Registry.html (fetched 2026-08-29T12:06:48.493052+00:00, sha 7f677e09f703)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/com/mchange/v2/c3p0/DriverManagerDataSource.html (fetched 2026-08-29T12:06:48.494668+00:00, sha aac504d6e7bc)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/com/mchange/v2/c3p0/WrapperConnectionPoolDataSource.html (fetched 2026-08-29T12:06:48.496277+00:00, sha c18286311e96)
  - site_page: https://www.mchange.com/projects/c3p0/apidocs/com/mchange/v2/c3p0/PoolBackedDataSource.html (fetched 2026-08-29T12:06:48.498054+00:00, sha c418fb156889)
- Data as of 2026-08-30T08:39:29.467469+00:00.
