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

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

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

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里的详细参数


相关文章

Apache整合IIS通用80端口

第一步:修改httpd.conf文件,启用proxy模块            ...

windows下apache与tomcat整合

jdk1.5.0_04http://java.sun.com/javase/downloads/index_jdk5.jsp在环境变量里面JAVA_HOME=C:\jdk1.5.0_04 tomcat...

Apache URLRewriter

今日折腾网站,不得不用到了Apache 的Rewrite功能,虽说我对正则表达式并不陌生,但这东西学完就忘,忘了再学一样吃力,并且正则表达式只是学习Rewrite的一个方面。半天下来心急火燎,最终事没...

授权Apache2 + PHP读写目录权限

摘要:您需要将目录的所有者设置为PHP使用的用户(Web服务器用户)。步骤1:确定PHP用户创建一个包含以下内容的PHP文件:<?php echo `whoami`;&nbs...

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

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

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

APACHE2如何里一个站点绑定多个域名?用ServerAlias以前很笨,要使多个域名指向同一站点总是这样写:<VirtualHost *:80> ServerAdmin&n...

发表评论

访客

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