Collect the connection pool performance, usage and availability metrics for C3P0.
Connection Pools allow you to monitor connection pool performance and identify issues such as connection leaks.
Several built-in OneAgent extensions provide an insight into the connection pool performance and issues such as connection leaks. The extensions cover the following technologies: Apache Tomcat, Oracle WebLogic, IBM WebSphere Application Server, IBM WebSphere Liberty, Red Hat JBoss and Wildfly, and C3P0.
Java Metric Extensions 2.0 (JMX).When activating your extension using monitoring configuration, you can limit monitoring to one of the feature sets. To work properly the extension has to collect at least one metric after the activation.
In highly segmented networks, feature sets can reflect the segments of your environment. Then, when you create a monitoring configuration, you can select a feature set and a corresponding ActiveGate group that can connect to this particular segment.
All metrics that aren't categorized into any feature set are considered to be the default and are always reported.
A metric inherits the feature set of a subgroup, which in turn inherits the feature set of a group. Also, the feature set defined on the metric level overrides the feature set defined on the subgroup level, which in turn overrides the feature set defined on the group level.
| Metric name | Metric key | Description |
|---|---|---|
| Num Idle Connections | c3p0.connectionPool.numIdleConnections | — |
| Num Active threads | c3p0.connectionPool.threadPoolNumActiveThreads | — |
| Thread Pool Size | c3p0.connectionPool.threadPoolSize | — |
| Metric name | Metric key | Description |
|---|---|---|
| Max Pool Size | c3p0.connectionPool.maxPoolSize | — |
| Num Connections | c3p0.connectionPool.numConnections | — |
| Num Busy Connections | c3p0.connectionPool.numBusyConnections | — |
| Num Unclosed Orphaned Connections | c3p0.connectionPool.numUnclosedOrphanedConnections | — |