tomcat--because there was insufficient free space available after evicting expired cache entries

九師兄發表於2017-09-06

在這裡插入圖片描述

警告: 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 cache

只要在$CATALINA_BASE/conf/context.xml裡增加資源最大可快取的大小就行了,大小可按自己的需要定義


<?xml version='1.0' encoding='utf-8'?>
<Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
    <Resources
        cachingAllowed="true"
        cacheMaxSize="100000"
    />
</Context>

相關文章