Good good TOMCAT monitoring tool probe

 

Tomcat Version: 6.0.41

Probe Version: 2.3.3

A, Tomcat is no default user accounts, so first of all you need to add Tomcat user account

Modify $ CATALINA_HOME / conf / tomcat-users.xml:

<tomcat-users>
<!-- 用户角色 --> <role rolename="manager"/> <!-- 用户账号 --> <user username="admin" password="admin" roles="manager"/> </tomcat-users>

Then restart Tomcat

 

Second, the application deployment Probe

Mode 1:

The probe.war thrown under $ CATALINA_HOME / webapps then restart Tomcat

Option 2:

Log Tomcat welcome page (for example: http: //127.0.0.1: 8080 /)

ROOT file containing own needs $ CATALINA_HOME / webapps folder (welcome page) and manager folder (Tomcat management page), in a production environment like Tomcat that comes with the deleted application, pay special attention to this point. If both folder does not exist, only these two folders copied to $ CATALINA_HOME / webapps, and then you can restart Tomcat

ROOT application path is "/" if the path of other web application deployment is also "/", will result in the application failed to start

$ CATALINA_HOME / conf / server.xml application is configured as follows:

<Context docBase="/home/sean/web/WebRoot" path="/" reloadable="false"> <ResourceLink global="database" name="database" type="javax.sql.DataSource"/> </Context>

In this case the application will result in failure to start (path conflicts, this path need to modify the value of the property, such as: path = "/ app")

 

 

 

 

Account for the previously configured admin / admin, after a successful login you can see all the web applications in Tomcat

Select probe.war, then click Deploy, the application will be included in the scope of management of Tomcat:

Probe at this time to enter the page (for example: http: //127.0.0.1: 8080 / probe, if a password is required, or admin / admin)

 

Third, by Probe Monitoring Tomcat Performance

1, monitor application status

Each application can also click through to see more detailed monitoring information

2, the monitoring database connection

3, application deployment

4, monitor log information

You can view all their own logs Tomcat and Tomcat application managed print log information, and can be filtered according to the required log level of log information

5, monitor the operating status of the cluster

Only supports Tomcat5.5.x cluster monitoring

6, monitor the status of all threads

7, monitoring, Tomcat connection statistics

Tomcat Version: 6.0.41

Probe Version: 2.3.3

A, Tomcat is no default user accounts, so first of all you need to add Tomcat user account

Modify $ CATALINA_HOME / conf / tomcat-users.xml:

<tomcat-users>
<!-- 用户角色 --> <role rolename="manager"/> <!-- 用户账号 --> <user username="admin" password="admin" roles="manager"/> </tomcat-users>

然后重启Tomcat

 

二,部署Probe应用

方式1:

将probe.war扔到$CATALINA_HOME/webapps下然后重启Tomcat

方式2:

登录Tomcat欢迎页面(例如:http://127.0.0.1:8080/)

需要$CATALINA_HOME/webapps下包含自带的ROOT文件夹(欢迎页面)和manager文件夹(Tomcat管理页面),在生产环境喜欢将Tomcat自带的应用删掉,这点要特别注意。如果这两个文件夹不存在,仅需将这两个文件夹拷贝至$CATALINA_HOME/webapps,然后重启Tomcat即可

ROOT应用的路径为“/”,如果部署的其它web应用的路径也为“/”,将导致该应用启动失败

$CATALINA_HOME/conf/server.xml中应用配置如下:

<Context docBase="/home/sean/web/WebRoot" path="/" reloadable="false"> <ResourceLink global="database" name="database" type="javax.sql.DataSource"/> </Context>

此时将导致该应用启动失败(路径冲突,此时需要修改path属性的值,如:path=“/app”)

 

 

 

 

账号为之前配置的admin/admin,登录成功后可以看到Tomcat下的所有web应用

选择probe.war,然后点击Deploy,该应用将会纳入Tomcat的管理范围:

此时即可进入Probe页面了(例如:http://127.0.0.1:8080/probe,如果需要密码,还是admin/admin)

 

三,通过Probe监控Tomcat性能

1,监控应用状态

点进每个应用还可以查看更加详细的监控信息

2,监控数据库连接

3,部署应用

4,监控日志信息

可以查看所有Tomcat自身的日志信息和Tomcat所管理的应用打印的日志信息,并可根据日志级别过滤所需的日志信息

5,监控集群运行状态

只支持Tomcat5.5.x的集群监控

6,监控所有线程的状态

7,监控、统计Tomcat连接

Guess you like

Origin www.cnblogs.com/lcword/p/11787489.html