修改$TOMCAT_HOME/bin/catalina.bat
添加set JAVA_OPTS= ...
rem ----- Execute The Requested Command ---------------------------------------
set JAVA_OPTS=%JAVA_OPTS% -server -Xms512m -Xmx512m -XX:MaxNewSize=256m -XX:PermSize=512M -XX:MaxPermSize=512m
echo Using CATALINA_BASE: "%CATALINA_BASE%"
echo Using CATALINA_HOME: "%CATALINA_HOME%"
echo Using CATALINA_TMPDIR: "%CATALINA_TMPDIR%"
通过 $TOMCAT_HOME/bin/startup.bat 启动(Windows)
通过 $TOMCAT_HOME/bin/startup.bat 启动(Linux)
可通过 $JAVA_HOME/bin/jconsole.exe 本地连接 org.apache.catalina.startup.Bootstrap start