public interface ConnectionPoolStatsMXBean
Management interface for the connection pool statistics MBean. One connection pool MBean instance exists per datasource or connection factory,
whether configured explicitly in server configuration or whether it exists implicitly due to a
@DataSourceDefinition
or @ConnectionFactoryDefinition
annotation. The Liberty profile makes this MBean available in its platform MBean server when the
monitor-1.0 feature is
enabled to allow monitoring of the connection pool.
Important: the MBean instance is not available until the connection factory or data source is first used.
The object name has the form WebSphere:type=ConnectionPoolStats,name=*
where name is either the JNDI name, if defined, or id of the DataSource or ConnectionFactory. The id may be explicitly defined or
generated by the server, as exemplified in the DefaultDataSource snippet below.
Object name examples:
WebSphere:type=ConnectionPoolStats,name=jdbc/db2
<dataSource jndiName="jdbc/db2">
...
</dataSource>
WebSphere:type=ConnectionPoolStats,name=dataSource[DefaultDataSource]/connectionManager[default-0]
<dataSource id="DefaultDataSource">
...
</dataSource>
WebSphere:type=ConnectionPoolStats,name=jmsConnectionFactory[cf1]/connectionManager[default-0]
<jmsConnectionFactory id="cf1">
...
</jmsConnectionFactory>
Modifier and Type | Method and Description |
---|---|
long |
getConnectionHandleCount()
The number of connections that are in use, including multiple connections shared from a single managed connection.
|
long |
getCreateCount()
The total number of managed connections created since pool creation.
|
long |
getDestroyCount()
The total number of managed connections destroyed since pool creation.
|
long |
getFreeConnectionCount()
The number of managed connections in the free pool.
|
double |
getInUseTime()
The average time in milliseconds a connection is in use.
|
com.ibm.websphere.monitor.jmx.StatisticsMeter |
getInUseTimeDetails()
Retrieves StatisticMeter object of InUseTime detail, which provides statistical details on the connection in use time.
|
long |
getManagedConnectionCount()
The total number of managed connections in the free, shared, and unshared pools.
|
double |
getWaitTime()
The average waiting time in milliseconds until a connection is granted if a connection is not currently available.
|
com.ibm.websphere.monitor.jmx.StatisticsMeter |
getWaitTimeDetails()
Retrieves StatisticMeter object of WaitTime detail, which provides statistical details on the connection wait time.
|
long getCreateCount()
long getDestroyCount()
long getConnectionHandleCount()
long getManagedConnectionCount()
double getWaitTime()
com.ibm.websphere.monitor.jmx.StatisticsMeter getWaitTimeDetails()
long getFreeConnectionCount()
double getInUseTime()
com.ibm.websphere.monitor.jmx.StatisticsMeter getInUseTimeDetails()