Remote JMX connection

前端 未结 12 1051
后悔当初
后悔当初 2020-11-29 15:54

I\'m trying to open a JMX connection to java application running on a remote machine.

The application JVM is configured with the following options:

  • com
12条回答
  •  时光取名叫无心
    2020-11-29 16:21

    the thing that work for me was to set /etc/hosts to point the hostname to the ip and not to the loopback interface and than restart my application.

    cat /etc/hosts

    127.0.0.1      localhost.localdomain localhost
    192.168.0.1    myservername
    

    This is my configuration:

    -Dcom.sun.management.jmxremote.port=1617 
    -Dcom.sun.management.jmxremote.ssl=false 
    -Dcom.sun.management.jmxremote.authenticate=false
    

提交回复
热议问题