Remote monitoring with visualvm and JMX

后端 未结 3 1701
太阳男子
太阳男子 2021-01-30 14:20

I would like to monitor a remotely running java (spring boot) application with jvisualvm (or jconsole). When running locally, I can see the managed beans in both jvisualvm and

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 15:26

    Please use the following JVM options :

    -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=192.168.59.99
    

    In the Jconsole use the following to connect:

    service:jmx:rmi:///jndi/rmi://192.168.59.99:9010/jmxrmi
    

提交回复
热议问题