The correct installation and use of Tomcat monitoring tool probe (note: Internet data collated)

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.