ConnectionPool monitoring
We can use the ConnectionPool MXBean for ConnectionPool monitoring of the Liberty profile.
Performance data of ConnectionPool for each data source is made available.
Each data source has a ConnectionPool MXBean associated with it, and there is one MXBean for every data source.
The ObjectName for identifying each ConnectionPool MXBean is:
WebSphere:type=ConnectionPool,name=*
For example:
WebSphere:type=ConnectionPool,name=jdbc/TradeDataSource
The ConnectionPool MXBean is responsible for reporting ConnectionPool Stats for a single data source. The following counter attributes are available for the ConnectionPool MXBean after monitoring is enabled:
- CreateCount
- The total number of connections created.
- DestroyCount
- The total number of connections destroyed.
- ManagedConnectionCount
- The number of ManagedConnection objects that are in use.
- WaitTime
- The average waiting time in milliseconds until a connection is granted.
- ConnectionHandleCount
- The number of Connection objects that are in use.
- FreeConnectionCount
- The number of free connections in the pool.
Parent topic: Monitoring the Liberty profile