Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hikari pool activeConnections not showing in JMX mbean

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

enter image description here

like image 766
vipin cp Avatar asked Oct 27 '25 05:10

vipin cp


1 Answers

You have to expose metrics through MBeans setting next property

spring.datasource.hikari.registerMbeans=true

enter image description here

like image 191
davity Avatar answered Oct 29 '25 19:10

davity



Donate For Us

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