Question
Bug1: Tomcat内存大小不足。
Bug2:
cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
Solution
Bug1:
建议更改Tomcat的setenv.sh 或 setclasspath.sh,加入:
JAVA_OPTS='-Xms【初始化内存大小】 -Xmx【可以使用的最大内存】'
另外,可以看下JVM设置-内存-heap。简单的深入了解下JVM原理。
Bug2:
tomcat 中context.xml 配置文件的 <Context></Context>中加入
<Resources cachingAllowed="true" cacheMaxSize="100000" />
Reference
[1]. JVM设置-内存-heap
[2]. 解决to the cache because there was insufficient free space available after evict
[3]. tomcat部署jenkins启动报错:insufficient free space available after evicting expired cache entries-consider increasing the maximum size of the cache.
[4]. TOMCAT内存大小调整