Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19356

Warnings about insufficient cache size when starting XWiki 14.0 RC1 on Tomcat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.1-rc-1
    • 14.0-rc-1
    • Windows 11 Pro 64 bit, Edge 97, using a local instance of XWiki 14.0 RC1, Tomcat 9.0.58
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Start a fresh XWiki 14.0 RC1 instance on Tomcat (tested with Tomcat 9.0.58)
      2. Observe the console

      EXPECTED RESULTS

      There are no errors/warnings.

      ACTUAL RESULTS

      There are many warnings about insufficient cache size, like:

      25-Jan-2022 16:01:37.415 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-search-solr-api-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.415 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-search-solr-query-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.415 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-search-solr-rest-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.415 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-api-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.415 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-authentication-api-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.415 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-authentication-default-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.415 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-authentication-script-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.421 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-authorization-api-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      25-Jan-2022 16:01:37.421 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xwiki-platform-security-authorization-bridge-14.0-rc-1.xed] to the cache for web application [/xwiki] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      ...
      

      (full stacktrace attached)

      I have already set in TOMCAT_HOME/conf/context.xml the following cache size:

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

      which I use for testing XWiki on Tomcat (setting used also for previous XWiki versions).

      I've tried to increase the cacheMaxSize up to 10000000 (for testing purpose), but I'm still getting the warnings.

      The issue could not be reproduced on XWiki 13.10.2 (which works with cacheMaxSize="100000").

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: