Tomcat 警告:consider increasing the maximum size of the cache

最近在Tomcat8上导入原本Tomcat6的项目,报了以下错误:Tomcat 警告:consider increasing the maximum size of the cache。

这是因为tomcat8以上对resource采取了cache,而默认的大小是10M。

解决的办法很简单,就是在context.xml中调大缓存。

代码如下:

  1. <Resources cachingAllowed="true" cacheMaxSize="100000" />  
posted @ 2017-12-13 15:55  Ericzya  阅读(5282)  评论(0编辑  收藏  举报