当前位置:首页 > Apache

Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource

canca2年前 (2024-01-30)Apache339
关于缓存空间不足倒置无法添加资源的解决办法!相信很多朋友都遇到过了吧。

报错信息如下:**为任意位置

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

只要在$CATALINA_BASE/conf/context.xml里增加资源最大可缓存的大小就行了,大小可按自己的需要定义

<?xml version='1.0' encoding='utf-8'?>
<Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
  <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
  <ResourcescachingAllowed="true" cacheMaxSize="100000" allowLinking="true" />
</Context>
更多配置可参考http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html里的详细参数


扫描二维码推送至手机访问。

版权声明:本文由Ant.Master's Blog发布,如需转载请注明出处。

本文链接:https://iant.work/post/872.html

分享给朋友:

“Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource” 的相关文章

windows下apache与tomcat整合

jdk1.5.0_04http://java.sun.com/javase/downloads/index_jdk5.jsp在环境变量里面JAVA_HOME=C:\jdk1.5.0_04 tomcat6http://apache.etoak.com/tomcat/tomcat-6/v6.0.18/s…

授权Apache2 + PHP读写目录权限

摘要:您需要将目录的所有者设置为PHP使用的用户(Web服务器用户)。步骤1:确定PHP用户…

Apache下htaccess文件不起作用/rewrite 没有效果

【Apache下rewrite不成功】不成功按照如下三步排查:【第一步:打开rewrite 模块没有】首先 我们找到apache安装目录下的 /conf/http.cnf打开,文件 搜索rewrite 找到#LoadModule rewrite_module modules/mod_rewrite.…

APACHE如何里一个站点绑定多个域名?用ServerAlias servername

APACHE2如何里一个站点绑定多个域名?用ServerAlias以前很笨,要使多个域名指向同一站点总是这样写:<VirtualHost *:80> ServerAdmin i@kuigg.com DocumentRoot /www/kuigg.com…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。