`
wandejun1012
  • 浏览: 2696317 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

consider increasing the maximum size of the cache

 
阅读更多

 

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

如果你有可能超过了此限制,那么tomcat是启动不起来了。

 

解决的办法很简单,就是在context.xml中调大缓存即可,具体如下:

 

<Resources cachingAllowed="true" cacheMaxSize="100000" />

 

加在</context>前就行。

 

参考链接1

参考链接2

参考链接3:官方解释

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics