业务场景

springboot项目,使用外置tomcat启动项目。在真实环境部署的时候,项目正常启动后提示 consider increasing the maximum size of the cache. After eviction approximately [9,230] KB of data remained in the cache

产生原因:

由于项目本身中存在众多无用的配置以及无用的代码,静态文件等, 导致的项目所以console警告缓存不够。

解决方案

解决方案就是把缓存弄大点。一开始没耐心看答案,直接把代码加进server.xml了,正确的应该是加到context.xml

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

 

更多推荐

consider increasing the maximum size of the cache. After eviction approximately