Java jconsole jmx connection failure

前端 未结 4 1628
深忆病人
深忆病人 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 07:51

    make sure you run your application using below command,

    java -Dcom.sun.management.jmxremote.port=9595 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar 
    

    then open jconsole with admin privilege; you might be able to connect without any issue.

    if you want to run multiple jar files, make sure to use different ports; otherwise it will give error saying it's already bind by the JVM

提交回复
热议问题