2016年10月09日 10:57:32 餘不二 閱讀數 15186 文章標籤: javatomcatcache 更多html
分類專欄: lan:JAVAjava
版權聲明:本文爲博主原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處連接和本聲明。web
本文連接:https://blog.csdn.net/yu452148611/article/details/52764493apache
報錯信息以下:**爲任意位置緩存
org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [**] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cachetomcat
只要在$CATALINA_BASE/conf/context.xml裏增長資源最大可緩存的大小就好了,大小可按本身的須要定義ide
<?xml version='1.0' encoding='utf-8'?>
spa
<Context>
.net
<WatchedResource>WEB-INF/web.xml</WatchedResource>
code
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Resources
cachingAllowed="true"
cacheMaxSize="100000"
/>
</Context>
更多配置可參考http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html裏的詳細參數