I have EC2 instance hosting Tomcat application. It has JVM installed within.
I am trying to monitor VisualGC from my workstation. In all those application instances we are able to establish the JMX connections in the visual vm tool, but for the plugin - Visual gc, for all the instances it says "Not supported for this JVM"
- we are able to connect to the instance by adding a JMX connection
- when I try to add jstatd connection, it displays "not supported for this JVM".
I have also created a policy file as suggested by other other solutions in the internet- 'jstatd.all.policy' and tried starting jstatd like below.
Command used -
./jstatd -J-Djava.security.policy=jstatd.all.policy
I made sure at that time jstatd was running in the instance, and we were able to get the stats in the instance in the command line, but We are somehow unable to get those stats displayed in the tool, the instance and visual gc plugin of the visual vm tool aren't connecting each other. Interestingly, we can see other monitor graphs.
Any reason out there why I am unble to view it?
I have already tried this command as well and this was it - sudo ./jstatd -J-Djava.security.policy=/tmp/jstatd.all.policy -J-Djava.rmi.server.hostname=<host ip> -J-Djava.rmi.server.logCalls=true &
but it did not solved the issue
Hope your security policy file (tools.policy) missing permission for tools.jar
Once added the above permission run jstatd,
Replace the JDK folder, hostname & port based on your env.