1.问题

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/lib/form/rowSet.jelly] to the cache for web application [/jenkins] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
有道云翻译:(处理得到/ jenkins /工作/ static_web xxx.xxx.xxx.xxx /配置:http - nio - 8080 - exec - 8]org.apache.catalina.webresources.Cache。getResource无法添加资源[/ web - inf / classes / lib /形式/行集。对于web应用程序(/ jenkins)的缓存,因为在清除过期的缓存条目后没有足够的可用空间——考虑增加缓存的最大大小

2.解决办法

在tomcat的/conf/context.xml中的中添加

  1. <!--这里单位是 KB-->
  2. <Resources cachingAllowed="true" cacheMaxSize="100000" />

3.解释

Resources 是资源定义元素
cachingAllowed和cacheMaxSize 是公共属性
代表的意思是:
cachingAllowed:如果此标志的值是true,将用于静态资源的高速缓存。如果没有指定,该标志的默认值是true。这个值可以在Web应用程序运行时进行更改(例如,通过JMX)。
当缓存在缓存禁用任何资源目前是从缓存中清除。
cacheMaxSize :以KB为单位的静态资源缓存的最大尺寸。如果未指定,则缺省值为10240 (10兆字节)。这个值可以在Web应用程序运行时进行更改(例如,通过JMX)。
如果缓存正在使用的内存大于新的限制缓存将尝试规模随着时间的推移,
以满足新的限制,以减少。如果需要的话,cacheObjectMaxSize将降低,以确保它是不大于 cacheMaxSize/20。

4.文档

这个是Apache 的官网文档:
https://tomcat.apache.org/tomcat-8.0-doc/config/resources.html#Attributes