`
TimerBin
  • 浏览: 355108 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

JConsole 远程链接配置(linux-tomcat)

    博客分类:
  • JAVA
阅读更多

一、摘要:

    在window系统中使用JVM自动可视化工具JConsole远程链接linux系统下的tomcat,对其进行监控。

 

二、步骤

   

    1.修改linux系统下的tomcat的catalina.sh文件,在“# - Execute The Requested Command--” 注释的上面添加如下配置:

 

CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=192.168.1.183 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8023 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" 

 -Djava.rmi.server.hostname :指定linux当前服务IP地址

 -Dcom.sun.management.jmxremote.port :对外开放的端口

-Dcom.sun.management.jmxremote.ssl =false: 不需要SSL验证

-Dcom.sun.management.jmxremote.authenticate=false:无需输入linux的用户名和密码从而直接链接

 

  2.重启tomcat

      

./bin/startup.sh

 

  3.检验jmxremote.port 是否生效

    

netstat -an |grep 8023

 

  4.配置linux对外开放8023端口

      详情可参阅http://blog.csdn.net/zhouyufengqingyang/article/details/51737254

 

   5.JConsole远程链接配置

    

 

   

 

 

  • 大小: 85.2 KB
  • 大小: 44.1 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics