上一篇:《创建高可用性的Web内容》勘误表 - 下一篇:用摄像头+VirtualDub录制视频
2009-06
24
版权声明:可以任意转载,但转载时必须标明原作者charlee、原始链接http://tech.idv2.com/2009/06/24/tomcat-status/以及本声明。
熟悉J2EE开发的人应该对此不屑一顾吧,俺是Java新手,没办法……做个笔记先。 Tomcat 5.5下测试通过。
首先要添加管理员用户。打开 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 当前繁忙线程数
添加评论
