consider increasing the maximum size of the cache. After eviction approximately [9,230] KB of data

编程知识 更新时间:2023-05-02 06:00:37

业务场景

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

本文发布于:2023-04-26 07:41:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/975faca246227e301dee36efe9c61ae8.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:size   cache   increasing   maximum   eviction

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 104771文章数
  • 26250阅读数
  • 0评论数