1 configuration Tomcat environment variables, the following steps:
Right-click the attribute computer, open environment variable --- system variables --- new variable name: CATALINA_HOME , the variable value: D: \ Program Files \ the Apache Software Foundation \ Tomcat 8.0 ( specifically see the Tomcat installation path ) , as shown below:
Open the PATH , add variable value: % CATALINA_HOME% \ lib;% CATALINA_HOME% \ bin , as shown below:
2 , set up server memory cmd command-line interface to enter the Tomcat extract the directory of bin directory
Open service.bat
in
set "SELF=%~dp0%service.bat"
rem Guess CATALINA_HOME if not defined
set "CURRENT_DIR=%cd%"
Followed by the phrase (see the specific memory size of the server configuration
set JAVA_OPTS = -Xms1024m -Xmx2048m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=1024m -Djava.awt.headless=true
Modify the following sentence
if "%JvmMs%" == "" set JvmMs=128
if "%JvmMx%" == "" set JvmMx=256
Is modified (see the specific memory size of the server configuration R & lt )
if "%JvmMs%" == "" set JvmMs=1024
if "%JvmMx%" == "" set JvmMx=2048 Startup=auto
if "%JvmMx%" == "" set JvmMx=2048 Startup=auto
Installation tomcat service running the service.bat install , after a successful run from the command line to open services.msc View service the Apache Tomcat XXX , initiated by the service in the form of tomcat
Note: If you want to clear before adding tamcat service Service the Remove
3 into the Tomcat extract the directory of bin directory - double-click tomcat8w.exe
打开tomcat的管理页面,点击JAVA进入Java options 输入框
A 在最后面加入:
-XX:PermSize=64M
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=48m
B 修改内存的大小
卸载服务:service uninstall tomcat7.94(服务名)
加载服务:service install tomcat7.94(服务名)