There is 1 update, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-00072118-44e2-4752-ae83-0122f64bc154 XWIKI-21881 Open

Sticky Tomcat Cache Warnings still occur on latest XWiki version

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-d8cfd495-fa49-47c1-bd3a-1bf7ec84482e Changes by Nikita Petrenko on 24/Nov/25 11:19
 
Description: It seems at some point user can get a warning message in Tomcat catalina.out file or not.


{code}
The background cache eviction process was unable to free [10] percent of the cache for Context [....] - consider increasing the maximum size of the cache. After eviction approximately [...] KB of data remained in the cache.
{code}


According to [official Tomcat documentation|https://tomcat.apache.org/tomcat-9.0-doc/config/resources.html], the value cacheMaxSize has to be changed.

Lastly, the value was updated to `cacheMaxSize="
20480 50176 "` in [commit|https://github.com/xwiki/xwiki-platform/ commit blob / 3984af1eacdffb311373f867ff11a94b3f236d72] for XWIKI 5b7bcc4cfd030b0a04a4a3e6f59fc6aab0d5eb15/xwiki - 17166 platform-distribution/xwiki-platform-distribution-debian/xwiki-platform-distribution-debian-tomcat/xwiki-platform-distribution-debian-tomcat10/xwiki-platform-distribution-debian-tomcat10-common/src/deb/resources/etc/xwiki/xwiki-tomcat10 . xml#L47].

Currently, this value isn't enough in order to get rid of the message, we need to find the desired value to which we can increase it.
 
 

1 comment

 
cid:jira-generated-image-avatar-d8cfd495-fa49-47c1-bd3a-1bf7ec84482e Nikita Petrenko on 24/Nov/25 11:16
 

I encountered this warning again after upgrading XWiki to 17.10-RC, and the next time I started XWiki, it would print these warnings. I found that manually changing the cache size with

cacheMaxSize="50176"

 up to 100176 in 

webapps/xwiki/META-INF/context.xml

resolves it and no warnings are printed in console.