【转发】介绍又一个不错的TOMCAT监控好工具probe
原文:http://blog.csdn.net/jackyrongvip/archive/2010/08/21/5829457.aspx
Tomcat监控工具。
?
1 下载:
http://www.lambdaprobe.org/downloads/1.7/probe.1.7b.zip
2 解压缩后,把probe.war放到TOMCAT的webapps下,设置server.xml
的context
3 设置用户如下,在tomcat_user.xml中
?? vi /usr/local/tomcat/conf//tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
??????? <role rolename="manager"/>
??????? <role rolename="standard"/>
??????? <role rolename="tomcat"/>
??????? <role rolename="admin"/>
??????? <role rolename="role1"/>
??????? <user username="tomcat" password="tomcat" roles="tomcat"/>
??????? <user username="both" password="tomcat" roles="tomcat,role1"/>
??????? <user username="probe" password="probe" roles="admin,manager"/>
??????? <user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
4 设置环境变量,获取服务器状态
# vi /etc/profile
JAVA_OPTS=-Dcom.sun.management.jmxremote
export JAVA_OPTS
5 重启动服务器
6 输入http://localhost/probe/,输入用户名和密码
7 即可进入,这里比较精彩的是对内存的监视,动态显示了JVM的内存图表
< type="text/javascript">if ($ != jQuery) {$ = jQuery.noConflict();}