【tomcat8】consider increasing the maximum size of the cache

YatHo發表於2017-06-06
[/WEB-INF/classes/hudson/model/Messages_zh_CN.properties] 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
05-Jun-2017 17:47:56.287 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/hudson/triggers/Messages.properties] 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
05-Jun-2017 17:47:56.338 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/lib/form/helpArea.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
05-Jun-2017 17:47:56.341 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/lib/layout/copyButton.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
05-Jun-2017 17:47:56.342 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/META-INF/services/org.kohsuke.stapler.jelly.JellyTagFileLoader] 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

  

反正就是快取不夠了

http://stackoverflow.com/questions/26893297/tomcat-8-throwing-org-apache-catalina-webresources-cache-getresource-unable-to

上面連結是stackoverflow上出現的和我一樣的錯誤,第二個答案成功的解決了這個警告,就是把快取弄大點。

 

解決辦法:

  context.xml中附加以下程式碼

  

<Resources cachingAllowed="true" cacheMaxSize="100000" />  

  

相關文章