Like we can get the number of busy connection in c3p0 by using method like dataSource.getNumBusyConnections()
, the same way how can we do that in case of hikaricp? Can anyone provide all the related methods between c3p0 and hikaricp? Also what is the destroy (in c3p0) method equivalent in hikaricp?
相关问题
- Difference between Types.INTEGER and Types.NULL in
- Do you need to close the connection you get from j
- metaData.getPrimaryKeys() returns a single row whe
- How to resolve “Invalid string or buffer length” a
- Mysql session variable in JDBC string
Re: connections, see these wiki pages:
JMX Monitoring (via console and programatically
Using Codahale/Dropwizard Metrics
HikariDataSource
supports bothclose()
andshutdown()
methods, they are equivalent.UPDATE: I put out a simple gist that uses JMX you can try.