在tomcat里面部署jenkins,啟動tomcat,在jenkins上操作不久之后,jenkins就掛掉了,查看tomcat控制台,報內存溢出信息:
解決該問題方法,修改tomcat/bin目錄下的catalina.bat文件,增加JVM內存,如圖:
重啟tomcat,在啟動過程中出現報錯信息:
org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB=INF/classes/META-INF/services/org.codehuas.groovy.source.Extensions] to the chache becasuse there was insufficient free space available after evicting expired cache entries-consider.
解決該問題方法,修改tomcat/conf/context.xml文件,增加資源最大可緩存的大小:
<Resources
cachingAllowed="true"
cacheMaxSize="102400"
/>
cachingAllowed="true"
cacheMaxSize="102400"
/>
