Tomcat Performance Monitoring and tuning

Source: Internet
Author: User

1. Performance monitoring

Mode 1:/usr/local/tomcat7/conf/tomcat-users.xml Add the following:

<role rolename="Manager-gui"/>    <role rolename="Manager-script"/>    <role rolename="manager-jmx"/>    <role rolename="Manager-status"/>    <user username="admin" password= "admin" roles=" Manager-gui "/>   <user username="tomcat" password="Tomcat" roles ="Manager-gui,manager-script,manager-jmx,manager-status"/>

Mode 2: Modify the/usr/local/tomcat7/bin/catalina.sh file:

To find the line:

#-----ExecuteTheRequestedCommand-----

Above the line, add the following line of information:

CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=XXX.XXX.XXX.XXX -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

Method 3: Graph drawing by associating and customizing monitoring in LR:

2. Performance issues

An explicit memory leak &cpu100%

(1) Location analysis via stack or thread dump
(2) Through JVISUALVM positioning analysis

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Tomcat Performance Monitoring and tuning

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.