Search code examples
spring-mvctomcat8

Tomcat 8 has warning about not able to free cache of background cache eviction process


I'm developing an app on spring mvc and sometime i see this message in console:

The background cache eviction process was unable to free [10] percent of the cache for Context [/myApp] - consider increasing the maximum size of the cache. After eviction approximately [9,501] KB of data remained in the cache.

Why and What should i do now?

Thanks all


Solution

  • This message is related to your tomcat server,

    In your $CATALINA_BASE/conf/context.xml add block below before </Context>

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