Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 205
uncle bob Avatar asked Mar 11 '17 18:03

uncle bob


1 Answers

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" />

like image 52
Mohamed NAOUALI Avatar answered Dec 23 '22 02:12

Mohamed NAOUALI