There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-bd61382b-9547-437b-833a-a43f6ffe386d XWIKI-21881 Open

Sticky Tomcat Cache Warnings still occur on latest XWiki version

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-503c8bdf-1b06-4847-8e05-a82c97879e38 Till Reymann on 03/Dec/25 15:46
 
Same h1. Errors

A huge pile of
errors when starting 17.10.0 as a container. Sample at the end of the comment.
h1. Temporary Solution

Changing the resource tag in 
{noformat}
/usr/local/tomcat/webapps/ROOT/META-INF/context.xml{noformat}
inside the container from
{noformat}
cacheMaxSize="50176"{noformat}
to
{noformat}
cacheMaxSize="500176"{noformat}
solved the issue.

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

Original file content:

 
{noformat}
<?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>
{noformat}
  h1. Error Samples

Sample:
{code:java}
Starting Servlet engine: [Apache Tomcat/10.1.49]
wiki-xwiki-web | 03-Dec-2025 14:49:20.309 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
wiki-xwiki-web | 03-Dec-2025 14:49:20.417 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-rendering-macro-box-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.418 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/tika-parser-code-module-2.9.4.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.418 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-captcha-default-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.419 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/log4j-api-2.25.2.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.420 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-websocket-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.420 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-rest-server-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.420 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-store-filesystem-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.421 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-rendering-legacy-transformation-macro-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.421 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-notifications-rest-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.422 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-notifications-notifiers-api-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.422 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-tika-detect-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.423 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/tika-parser-audiovideo-module-2.9.4.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.424 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-wiki-default-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.424 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-date-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.425 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-filter-instance-extension-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.426 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/Eonasdan-bootstrap-datetimepicker-4.17.49.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.426 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-wiki-template-script-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.427 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-requiredrights-macro-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.427 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/re2j-1.8.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.427 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/jetty-http-10.0.26.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.428 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-authentication-script-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.428 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-crypto-store-api-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
wiki-xwiki-web | 03-Dec-2025 14:49:20.429 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-captcha-jcaptcha-api-17.10.0.xed] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache{code}