Tomcat监控规格严格

Tomcat监控规格严格,第1张

   1: enable JMX management for tomcat
      Tomcat doesn't enable the jmx management interface by default,so we have to enable it first before using it. it is very easy to do, all we need to do is add the following arguments into the script "catalina.bat".
    set CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8060 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
   Notes: 8060 is the rmi port for JMX MBeanServer. 

   2: start tomcat

   3: start  jconsole  to view  all the  beans  in  tomcat container;

     start-->run--> jconsole ; a window will be poped up:
     select advance. then input url: service:jmx:rmi:///jndi/rmi://localhost:8060/jmxrmi
     don't put the username and password . because we didn't enable the ssl.
      click connect . now you can view all the mbean in tomcat server. and can easily   manage the mbean.

但是这在1.5以上肯定没问题,但是1.4我发现不好用,目前没找到办法

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/2090358.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存