开发者社区> 问答> 正文

关于JMX连接tomcat问题

TOMCAT中已经配置了:

-Dcom.sun.management.jmxremote.port=8999
-Djava.rmi.server.hostname=服务器ip
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false


但连接时还是提示:

Connection refused to host: 101.xxx.xxx.111; nested exception is:
    java.net.ConnectException: Connection timed out: connect
java.rmi.ConnectException: Connection refused to host: 101.xxx.xxx.111; nested exception is:
    java.net.ConnectException: Connection timed out: connect
用jconsole连接也连不上,下来还需要设置什么呢,谢谢各位了!


求助啊,谢谢各位

展开
收起
napper 2016-10-12 20:04:03 6567 0
2 条回答
写回答
取消 提交回答
  • 回 1楼dongshan8的帖子
    是windows的系统

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

    回 3楼dongshan8的帖子
    嗯,本地通过netstat或tcping都可以访问到,但通过jconsole或jdk进行JMX访问tomcat没办法连接
    其中windows的防火墙已经关闭,8999端口在服务器也已经放开了

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

    回 5楼dongshan8的帖子
    刚才试了从一台ecs通过内网ip访问这台ecs,可以正常获取到tomcat的信息
    但在外网通过外网ip访问这台ecs时就会超时。。。
    2016-10-13 13:45:11
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    楼主您好,

    请问您使用的操作系统是什么呢?

    是CentOS 7 吗?

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

    回 2楼(napper) 的帖子
    您好,

    那在本地系统中,使用 netstat 的命令,可以查看到 8999 已经在监听使用吗?

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

    回 4楼(napper) 的帖子
    您好,

    这就有些怪了,请问您有检查ECS控制面板里的“安全组”规则吗? https://help.aliyun.com/document_detail/25471.html

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

    回 6楼(napper) 的帖子
    您好,

    那您有没有检查,8999 是在内网的IP地址上监听,还是除了内网,公网IP上的 8999 也是监听状态呢?
    2016-10-13 10:28:56
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载