Lambdaprobe, designed specifically for Tomcat monitoring, explains its usage here:
1 Download:
Http://www.lambdaprobe.org/downloads/1.7/probe.1.7b.zip
2 decompression, put the Probe.war under the WebApps of Tomcat
3 Set the user as follows, in Tomcat_user.xml
Vi/usr/local/tomcat/conf//tomcat-users.xml
<?xml version= ' 1.0 ' encoding= ' utf-8 '?>
<tomcat-users>
<role rolename= "Manager"/>
<user username= "Tomcat" password= "Tomcat" roles= "manager"/>
</tomcat-users>
4 setting environment variables to get server status
# Vi/etc/profile
Java_opts=-dcom.sun.management.jmxremote
Export java_opts
5 Restart Server
6 input http://localhost/probe/, enter username and password
7 can enter, here is more wonderful is the memory of the monitoring, dynamic display of the JVM memory diagram
Note: In the Windows environment, after setting the environment variable in step fourth above, view memory information and display a normal diagram.
But under Linux, even if you set the environment variable, it does not work, it will complain:
This page requires JAVA5 with enabled JMX Agent. To enable the JXM Agent, please add '-dcom.sun.management.jmxremote ' to Java command line or $JAVA _opts environment variabl E.
The solution is as follows:
vi/usr/local/tomcat/bin/catalina.sh
Catalina_home=/usr/local/tomcat
java_opts= "-xms512m-xmx768m-xx:permsize=128m-xx:maxpermsize=128m -dcom.sun.management.jmxremote"
Reboot the server again.