开发者社区> 问答> 正文

TomcatJMX远程监控连接不上


使用jconsole 远程监控 ECS 中 开放 JMX端口的 tomcat. 无法成功连接。

不知何故,请教....

展开
收起
dragondwy 2014-12-16 23:38:59 10060 0
4 条回答
写回答
取消 提交回答
  • 意思是说端口随机,防火墙阻止不了吗?
    2017-03-25 13:55:32
    赞同 展开评论 打赏
  • ReTomcatJMX远程监控连接不上
    端口问题,翻译那段英文,把防火墙关闭,systemctl stop firewalld,就可以连接成功,如果还不行就是其它问题了
    2017-03-25 01:37:32
    赞同 展开评论 打赏
  • 回 2楼dragondwy的帖子
    你好,我这里也遇到了相同的问题,能说明下是怎么处理的吗,谢谢
    2016-10-12 19:32:54
    赞同 展开评论 打赏
  • ReTomcatJMX远程监控连接不上
    如下配置,实在不知错在何处了。。。


    CATALINA_OPTS=" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999  -Dcom.sun.management.jmxremote.ssl=false  -Djava.rmi.server.hostname=<IPaddress> -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"

    -------------------------

    ReTomcatJMX远程监控连接不上
    哈哈,搞定了,Stackoverflow, 没有你可怎么活!

    Also keep in mind jconsole is using RMI for the communication. This means jconsole first connects to ip:6969. Then server generates a random port X which is passed back to the jconsole. Jconsole then opens another connection to ip:X. Since X is random, there is no way you can open this specific port in the firewall. You have either to open all ports or use a socks proxy which is another subject.
    2014-12-16 23:44:30
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载