I am new to Java and I'm facing a problem in connecting a Remote Host to the JVisualVM.
I've searched the Internet and followed all the steps mentioned there but still am not able to resolve the issue. The steps I followed are:
I started the jstatd on the remote server by first creating a
jstatd.all.policyfile in the$JAVA_HOME/bin. The file contained:grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission;};I started the
Jstatdasjstatd -J-Djava.security.policy=jstatd.all.policyI started the Java application on the remote host as :
java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false application_nameI then started as instance of the
JVisualVMon my local machine and as I added the remote host, it got connected but i wasn't able to see any of the Java processes.
Can anyone please help me with this.
Thanks.