Tomcat 無法將位於-的資源添加到Web應用程序-的緩存中,因為在清除過期緩存條目后可用空間仍不足 - 請考慮增加緩存的最大空間


1、問題

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [xxx] to the cache for web application [/xxx] 
because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

2、解決方式:

在tomcat 下的conf 文件夾中content.xml 修改里面的內容:大小默認是10240,單位是KB  

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

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM