#1.
Get the installation packagewgetHttps//Psi-probe.googlecode.com/files/probe-2.3.3.zip#2.
Unpacking the installation packageUnzipprobe-2.3.3.Zip
MVProbe.war <tomcatdir>/webapps#3.
set up Tomcat user informationVI <tomcat dir>/conf/tomcat-users.xml--------------------------------------------------------------------------------<?XML version= ' 1.0 ' encoding= ' utf-8 '?>
<tomcat-users>
<rolerolename= "Manager"/>
<rolerolename= "Standard"/>
<rolerolename= "Tomcat"/>
<rolerolename= "Admin"/>
<rolerolename= "Role1"/>
<Userusername= "Tomcat"Password= "Tomcat"Roles= "Tomcat"/>
<Userusername= "both"Password= "Tomcat"Roles= "Tomcat,role1"/>
<Userusername= "Probe"Password= "Probe"Roles= "Admin,manager"/>
<Userusername= "Role1"Password= "Tomcat"Roles= "Role1"/>
</tomcat-users>----------------------------------------------------------------------- ---------
#注: Replace the contents of the Tomcat-users.xml file directly with this content # after the user name password is modified
Tomcat
#4.
set environment variables to get server status#VI/etc/profile
Java_opts=-dcom.sun.management.jmxremote
Export java_opts
#5. javamelody and Web application integration
when the Web. XML Configuration
- <Listener>
<Listener-class>Net.bull.javamelody.SessionListener</Listener-class>
</Listener>
<Filter>
<Filter-name>Monitoring</Filter-name>
<Filter-class>Net.bull.javamelody.MonitoringFilter</Filter-class>
</Filter>
<filter-mapping>
<Filter-name>Monitoring</Filter-name>
<Url-pattern>/*</Url-pattern>
</filter-mapping>
Using Javamelody to monitor Tomcat services-Installation Manuals