zoukankan      html  css  js  c++  java
  • 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我发现不好用,目前没找到办法

  • 相关阅读:
    TCP流量控制和拥塞控制
    延迟确认和Nagle算法
    浅谈TCP三次握手和四次挥手
    中介者模式
    代理模式
    装饰者模式
    生成器模式(构建者模式)
    策略模式
    模板方法模式
    抽象工厂模式
  • 原文地址:https://www.cnblogs.com/diyunpeng/p/2280182.html
Copyright © 2011-2022 走看看