Take the decompressed version of tomcat7.0 as an example
1. JVM startup parameter modification
In catalina.bat under tomcat bin
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
Add later
set JAVA_OPTS=-Xms1024m -Xmx1024m -Xmn256m -XX:PermSize=128M -XX:MaxPermSize=128m -Djava.awt.headless=true -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:D:\log\jvm\gc.log
2. Configure management users
Find conf/tomcat-users.xml in the tomcat decompression directory
Add in the penultimate line:
<role rolename="manager-gui"/>
< user username="admin" password="admin" roles="manager-gui"/>
Open: http://localhost:8080/manager/status
Log in as admin/admin to view the status of tomcat.