zoukankan      html  css  js  c++  java
  • Tomcat监控—Status页面

    原文:http://jingyan.baidu.com/article/925f8cb8f3d925c0dce05677.html

    1. 修改配置文件tomcat-users(该文件在Tomcat安装程序根目录中的conf文件夹中),添加一个admin设置权限,在<tomcat-users>中添加的内容如下:

      <role rolename="admin-gui"/>

      <user username="admin" password="1234" roles="manager-gui"/>

      Tomcat监控—Status页面
       
       
       添加tomcat管理员帐户 
      添加管理员账户tomcat-users.xml 
      <?xml version='1.0' encoding='utf-8'?> 
      <tomcat-users> 
      <role rolename="tomcat"/> 
      <role rolename="role1"/> 
      <role rolename="manager"/> 
      <role rolename="admin"/> 
      <user username="tomcat" password="tomcat" roles="tomcat"/> 
      <user username="both" password="tomcat" roles="tomcat,role1"/> 
      <user username="role1" password="tomcat" roles="role1"/> 
      <user username="admin" password="admin123" roles="admin,manager"/> 
      </tomcat-users>
       
       
    2. 2

      修改完成后,重启Tomcat服务器,在浏览器中输入URL(http://localhost:8080/),或http//IP:8080;

      Tomcat监控—Status页面
    3. 3

      点击【Sever-Status】

      输入

      帐号:admin

      密码:1234

      点击确认,进入Tomcat status 页面

      Tomcat监控—Status页面
    4. 4

      基本信息主要包括3部分内容:JVM、HTTP和jk。

      JVM的信息如下:

      Free memory: 304.84 MB Total memory: 903.00 MB Max memory: 7273.00 MB

      Free memory:空闲内存大小。

      Total memory:总内存大小。

      Max memory:最大内存大小。

      Tomcat监控—Status页面
    5. 5

      HTTP相关信息如下:

      Max threads: 200 Current thread count: 10 Current thread busy: 1 Keeped alive sockets count: 1Max processing time: 187 ms Processing time: 0.281 s Request count: 32 Error count: 3 Bytes received: 0.00 MB Bytes sent: 0.12 MB

      Max threads:最大线程数。

      Current thread count:最近运行的线程数。

      Max processing time:最大CPU时间。

      Processing time:CPU消耗总时间。

      Request count:请求总数。

      Error count:错误的请求数。

      Bytes received:接收字节数。

      Bytes sent:发送字节数。

      Tomcat监控—Status页面
  • 相关阅读:
    ActiveMQ
    bzoj 3039 悬线法求最大01子矩阵
    bzoj 1015 并查集
    bzoj 3037 贪心
    bzoj 2599 数分治 点剖分
    bzoj 2743 树状数组离线查询
    bzoj 2141 线段树套平衡树
    bzoj 3171 费用流
    bzoj 2751 快速幂
    bzoj 2956 数学展开,分段处理
  • 原文地址:https://www.cnblogs.com/shihaiming/p/5999960.html
Copyright © 2011-2022 走看看