连接 failed:Retry?控制台

Connection failed:Retry? Jconsole

我无法使用 localhost:9999 连接到 mac 中的 jconsole,它说安全连接失败。不安全地重试?但是当我 select 不安全的连接。它说连接 failed:retry?.

Added following in bash_profile and setenv.sh of tomcat 8.
-export JAVA_OPTS="-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=9999 
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname=10.102.15.224"

它对本地进程也说同样的话。

JMX 使用 2 个端口,一个用于您指定的注册表,另一个用于随机选择的实际连接。

您可以设置它 manually or let Tomcat 为您设置它