首先要添加管理员用户。打开 conf/tomcat-users.xml,在其中加入这样一行:
<user username="manager" password="password" roles="standard,manager"/>
然后重启Tomcat。
之后访问以下地址:
http://localhost:8080/manager/status
输入刚才设置好的管理员用户名和密码,就能看到服务器状态的页面。 其中几个比较重要的数值:
- Max threads: 150 最大线程数
- Min spare threads: 25 最小空闲线程数
- Max spare threads: 75 最大空闲线程数
- Current thread count: 25 当前线程数
- Current thread busy: 2 当前繁忙线程数
转载于:https://blog.51cto.com/lya041/674107