Unable to add the resource at [*/*/*.jar] to the cache because there

本文介绍了解决Tomcat缓存溢出问题的方法。通过调整context.xml中的配置,可以设置资源缓存的最大大小或者完全禁用缓存,以此来避免因缓存不足导致的警告信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

找到tomcat的conf/context.xml配置文件,在context里面添加如下配置:

<Resources cachingAllowed="false"/>

警告: Unable to add the resource at [/WEB-INF/lib/woodstox-core-asl-4.4.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:46:56 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/wsdl4j-1.6.3.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:46:56 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xmlschema-core-2.1.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:46:56 下午 org.apache.catalina.webresources.Cache backgroundProcess
信息: The background cache eviction process was unable to free [10] percent of the cache for Context [/dataSelect] - consider increasing the maximum size of the cache. After eviction approximately [10,140] KB of data remained in the cache.
十二月 18, 2017 3:47:07 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/woodstox-core-asl-4.4.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:47:07 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/wsdl4j-1.6.3.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:47:07 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xmlschema-core-2.1.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache


在使用tomcat 8 时 出现了此错误,tomcat控制台一直出现这些信息,解决办法

第一种:

找到tomcat的conf/context.xml配置文件,在context里面添加如下配置:
<Resources cachingAllowed="true" cacheMaxSize="100000" />

第二种

找到tomcat的conf/context.xml配置文件,在context里面添加如下配置:

<Resources cachingAllowed="false"/>

注: 

     如果context.xml文件内容修改完毕,在启动eclipse后自动恢复,那么久需要在eclipse的一个项目Servers中,找到你的tomcat,打开有各种配置文件,在这里改,才会在使用eclipse启动tomcat后不会自动恢复







                
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值