Tomcat:Warn consider increasing

2017-03-31  本文已影响0人  iamlyly

问题描述

Tomcat启动的时候,日志报了一堆警告信息,如下

 WARNING [localhost-startStop-1] org.apache.catalina.webresources.Cache.getResources Unable to add the 
resource at [/WEB-INF/classes/META-INF/services/javax.xml.parsers.DocumentBuilderFactory] to the cache 
because there was insufficient free space available after evicting expired cache entries - consider increasing
 the maximum size of the cache

解决方法

在tomcat的/conf/context.xml中的<Context>中添加

<Resources cachingAllowed="true" cacheMaxSize="100000" ---->这里单位是 KB/>
上一篇 下一篇

猜你喜欢

热点阅读