1

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

Vipin CP
  • 3,642
  • 3
  • 33
  • 55

1 Answers1

4

You have to expose metrics through MBeans setting next property

spring.datasource.hikari.registerMbeans=true

enter image description here

davity
  • 81
  • 6