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