Java jconsole jmx connection failure

前端 未结 4 1638
深忆病人
深忆病人 2021-02-10 07:13

I\'m trying to connect jconsole to a jvm invoked by:

java \\
-Djava.util.logging.config.file=./logging.properties \\
-Dcom.sun.management.jmxremote.ssl=false \\
         


        
4条回答
  •  猫巷女王i
    2021-02-10 07:41

    new and better solution than using a manually coded agent, is to use the new parameter which seems to be introduced in Java 7:

    -Dcom.sun.management.jmxremote.rmi.port=7091

    So in combination - same port can be used:

    -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.rmi.port=7091

    Solution found here: http://hirt.se/blog/?p=289

提交回复
热议问题