Not able to Connect a Remote Host to the VisualVM

后端 未结 5 1555
执念已碎
执念已碎 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:45

    You need to start jstatd with the additional option that points to the server's external IP or hostname:

    statd -J-Djava.security.policy=jstatd.all.policy -J-Djava.rmi.server.hostname=my_server_ip/hostname
    

    Answer based on: https://java.net/projects/visualvm/lists/users/archive/2010-03/message/8

提交回复
热议问题