Tomcat监控 规格严格

   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我发现不好用,目前没找到办法

原文地址:https://www.cnblogs.com/diyunpeng/p/2280182.html