Reputation: 21
``I am trying to access the JMX actuator endpoints using jvisualvm.
I have done the following
gs-actuator-service-complete
)spring.jmx.enabled=true
build.gradle
file
bootRun {
jvmArgs = ["-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false"]
}
./gradlew bootrun
jvisualvm
service:jmx:rmi:///jndi/rmi/://localhost:9001/jmxrmi
and service:jmx:remote+http://localhost:9001
in the Add JMX Connection dialog.In particular
actuator/metrics
and other endpoints?Upvotes: 2
Views: 1295
Reputation: 6981
First you need to install 'VisualVM-MBeans' plugin, since the data are exported as MBeans. Once you have 'VisualVM-MBeans' plugin installed, just open actuator service sample project from VisualVM and switch to 'MBeans' tab. Spring MBeans can be accessed under org.springframework.boot on left tree.
Upvotes: 2