手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

Tomcat监控—Status页面

时间:2024-10-12 03:57:35

1、修改配置文件tomcat-users(该文件在Tomcat安装程序根目录中的conf文件夹中),添加一个admin设置权限,在<tomcat-users>中添加的内容如下:<role rolename="admin-gui"/><user username="admin" password="1234" roles="manager-gui"/>

Tomcat监控—Status页面

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

Tomcat监控—Status页面

3、点击【Sever-Status】输入帐号:admin密码:1234点击确认,进入Tomcat status 页面

Tomcat监控—Status页面

4、基本信息主要包括3部分内容:JVM、HTTP和jk。JVM的信息如下:Free memory: 304.84 MB Total memory: 903.00 MB Max memory: 7273.00 MBFree memory:空闲内存大小。Total memory:总内存大小。Max memory:最大内存大小。

Tomcat监控—Status页面

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 MBMax threads:最大线程数。Current thread count:最近运行的线程数。Max processing time:最大CPU时间。Processing time:CPU消耗总时间。Request count:请求总数。Error count:错误的请求数。Bytes received:接收字节数。Bytes sent:发送字节数。

Tomcat监控—Status页面
© 手抄报圈