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
Asked
Active
Viewed 2,951 times
1

Vipin CP
- 3,642
- 3
- 33
- 55
1 Answers
4
You have to expose metrics through MBeans setting next property
spring.datasource.hikari.registerMbeans=true

davity
- 81
- 6
-
Correct, as per documentation in https://github.com/brettwooldridge/HikariCP. – Philippe Mar 09 '21 at 16:45