使用jConsole连接远程tomcat JMX实例 [英] Connecting remote tomcat JMX instance using jConsole
本文介绍了使用jConsole连接远程tomcat JMX实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用jConsole连接到远程tomcat JMX实例。但无法成功连接。任何想法?
I am trying to connect to a remote tomcat JMX instance using jConsole. But can't connect successfully. Any Idea?
我在远程tomcat中包含以下选项 catalina.sh
:
I included the following option in remote tomcat catalina.sh
:
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9004 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false"
推荐答案
我有一个类似的,如果不是相同的问题。如果我在机器上本地启动jconsole,我可以连接到JMX服务器。
I had a similar, if not the same, problem. I could connect to the JMX server if I started jconsole locally on the machine.
看来RMI服务器没有正在侦听正确的ip。因此,正如此相关问题,我添加了以下内容:
It appears the RMI server was not listening on the correct ip. So, as was suggested in this related question, I added the following:
-Djava.rmi.server.hostname=<host ip>
到 JAVA_OPTS
以及它然后呢工作。
这篇关于使用jConsole连接远程tomcat JMX实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文