【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" />
相关推荐
步行cgn12 小时前
Axios 请求成功但页面不显示:两个前端错误的分析与修正
前端
时间的情敌13 小时前
WebGIS + OpenLayers + GeoServer + PostGIS #量算 #点聚合
前端·geoserver·openlayers
不可能片场14 小时前
Electron 发布 cookie 库先查明文再写解密
前端·electron
郭小李14 小时前
springmvc 拦截器
java·开发语言·前端
web打印社区14 小时前
Chrome-kiosk-printing能上生产吗
开发语言·前端·javascript·chrome·websocket
白帽攻防录14 小时前
某pc客户端app从xss到rce实战案例
前端·网络安全·黑客·xss·rce·src漏洞·app漏洞
志尊宝14 小时前
AI原生前端开发(041):AI辅助的状态管理(Zustand/Pinia)
前端·javascript·ai-native
修炼的dance14 小时前
pngquant 两档质量后接 oxipng,每步省多少花几秒
前端
费曼学习法14 小时前
无人值守AI内容矩阵实战(10):Windows 无 systemd,进程存活率 99% 怎么做
前端
小兔子14 小时前
Integer 的 == 在 100 时是 true,在 1000 时是 false
前端