Tomcat 缓存不足问题

omcat下配置context.xml解决加载web项目资源缓存不足问题 最近部署项目启动服务器后,控制台重复报错警告:

Unable to add the resource at [/WEB-INF/lib/xpp3_min-1.1.4c.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

解决办法 :修改

context.xml在任意位置增加


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

cacheMaxSize根据你自己项目大小去设置

posted @ 2022-03-26 10:18  小常在  阅读(329)  评论(0编辑  收藏  举报