Reputation: 493
I'm going to debug springBoot application using visualvm. In local environment I could monitor,
But when I trying to monitor application instance running in remote server All grapg pannels works except cpu graph. cpu graph pannel show "Not supported for this JVM".
I have started jstatd deamon in remote server using following command
jstatd -p 1099 -J-Djava.security.policy=<(echo 'grant codebase "file:${java.home}/../lib/tools.jar" {permission java.security.AllPermission;};')
Any help to enable cpu matrics is highly appreciate
Upvotes: 4
Views: 689
Reputation: 493
As I mentioned in my answer I have run jstatd deamon to collection and expose metrics.I couldn't recover cpu graph with this approach. Finally I decided to take another approach with jmx,
java -Dcom.sun.management.jmxremote.port=15000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.rmi.port=15001 -jar application.jar
then I could get all the metrics
Upvotes: 3