apache-tomcat-8.5.31-2018\conf\context.xml
打开后在Context中添加<Resources cachingAllowed="true" cacheMaxSize="150000" ></Resources>
默认只有10M的大小
cacheMaxSize的单位是kb
报错信息如下:
[localhost-startStop-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/static/js/ueditor/third-party/highcharts/highcharts.src.js] to the cache for web application [/dgshop-0.0.1-release] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
本文介绍了解决Apache Tomcat中资源缓存不足的问题方法。通过调整context.xml文件中的cacheMaxSize参数,可以有效增大缓存容量,解决因缓存空间不足导致的资源无法加载问题。
1万+

被折叠的 条评论
为什么被折叠?



