Java jconsole jmx connection failure

前端 未结 4 1626
深忆病人
深忆病人 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条回答
  •  借酒劲吻你
    2021-02-10 08:02

    The out-of-the-box JMX implementation uses two ports - one for the registry (the one that you specified) and one for the actual connection which is selected randomly (!). This is quite a design flaw since the random selection of the second port makes it very hard to configure a firewall.

    There are ways around it however - either you can do it yourself manually, or if you are using Tomcat you let it handle it for you.

提交回复
热议问题