Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save i-amolo/d2f85ab7cdcc33b34b31e8aff9335bc2 to your computer and use it in GitHub Desktop.
Save i-amolo/d2f85ab7cdcc33b34b31e8aff9335bc2 to your computer and use it in GitHub Desktop.
运行tomcat会出现 org.apache.catalina.webresources.Cache.backgroundProcess The background cache eviction process was unable to free [10] percent of the cache for Context [/QiiiBuoy] - consider increasing the maximum size of the cache. After eviction approximately [9,506] KB of data remained in the cache.
在tomcat的/conf/context.xml中的Context中追加一句
<Resources cachingAllowed="true" cacheMaxSize="100000" />
变成如下
<?xml version='1.0' encoding='utf-8'?>
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Resources cachingAllowed="true" cacheMaxSize="100000" />
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment