There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-5bcb22ba-19f0-46a2-81c2-24412fe60b42 XWIKI-21881 Open

Sticky Tomcat Cache Warnings still occur on latest XWiki version

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-6daf2af6-b934-48a3-9b35-2f7c400f65fb Till Reymann on 03/Dec/25 15:34
 

Same errors when starting 17.10.0 as a container.

Changing the resource tag in 

/usr/local/tomcat/webapps/ROOT/META-INF/context.xml

inside the container from

cacheMaxSize="50176"

to

cacheMaxSize="500176"

solved the issue.

In fact, I mounted a copy of the file as a volume.

Original file content:

 

<?xml version="1.0" encoding="UTF-8"?>
<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<!--
  Used only when deploying XWiki in Tomcat.
  Prevent JAR scanning and disable JSP support. This is done to increase Tomcat startup to the maximum. Note that we keep
  WebSocket support enabled because it is needed by the real-time editing.
  See https://wiki.apache.org/tomcat/HowTo/FasterStartUp &
  https://tcollignon.github.io/2016/02/09/Accelerate-tomcat-78-start-up.html
-->
<Context containerSciFilter="org.apache.jasper.servlet.JasperInitializer">
  <JarScanner>
    <JarScanFilter defaultTldScan="false"/>
  </JarScanner>
  <!-- We need to set the resource cache size since the default (10K) is too small for loading all XWiki resources at
       once -->
  <Resources cacheMaxSize="50176" />
</Context>