Not able to Connect a Remote Host to the VisualVM

后端 未结 5 1558
执念已碎
执念已碎 2021-01-31 18:59

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 th

5条回答
  •  悲&欢浪女
    2021-01-31 19:49

    To connect to a remote VM you have to start that remote VM with specific options:

    java
     -Dcom.sun.management.jmxremote
     -Dcom.sun.management.jmxremote.port=9000
     -Dcom.sun.management.jmxremote.ssl=false
     -Dcom.sun.management.jmxremote.authenticate=false
    class
    

    After the VM is started, go to your VisualVM and do the following:

    1. File -> Add JMX Connection
    2. Type: yourHostName:9000 and click OK
    3. On the left you will have the added JMX connection, double click on it and that's it!

    More details on the Java Monitoring and Management Platform can be found here.

提交回复
热议问题