我在setenv.sh中加入了以下内容
export CATALINA_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=127.0.0.1"
但我仍然无法将 JConsole 连接到远程服务器。那里的主机名到底应该是什么?我已经检查了 server.xml,它在连接器标签中不包含任何 ip。
还是我在这里遗漏了其他东西?
最佳答案
这answer为我工作。我无法将 Jconsole 连接到远程 tomcat 服务器,只是因为有额外的端口要求。
关于java - 无法将 Jconsole 连接到远程服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30844750/