建立setenv.bat文件,編輯如下內容java
set "CATALINA_OPTS=%CATALINA_OPTS% -DJENKINS_HOME=填寫你的jenkins主目錄路徑" set "CATALINA_OPTS=%CATALINA_OPTS% -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true" set "CATALINA_OPTS=%CATALINA_OPTS% -Xms1024m -Xmx2048m" set "CATALINA_OPTS=%CATALINA_OPTS% -XX:MaxPermSize=256m"
建立setenv.sh文件,編輯如下內容,注意權限等。windows
#!/bin/sh export CATALINA_OPTS="$CATALINA_OPTS -DJENKINS_HOME=填寫你的jenkins主目錄路徑" export CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true" export CATALINA_OPTS="$CATALINA_OPTS -Xms1024m -Xmx2048m" export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m"
在tomcat的/conf/context.xml中的Context中添加centos
<Resources cachingAllowed="true" cacheMaxSize="100000" />