I was monitoring the spring boot application through java Visual Vm. I want to monitor the connection pooling . HikariCP is the one used for connection pooling. I am not able to see the number of active connections in the details. Attached screenshot. Doesn't it exposed by default or should we programatically do it? please advice

You have to expose metrics through MBeans setting next property
spring.datasource.hikari.registerMbeans=true

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With