Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12953

Cache warnings in Tomcat logs when starting essentials

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • essentials
    • None
    • Pulsar
    • !Pulsar - Testing

    Description

      Although not a functional problem the (console) log should not have errors or warnings.
      Likely the warning is related to our growing number of plugins.
      Potential solutions include increasing the cache, suppressing the warning or do lazy scanning/loading and avoid loading all images in the cache
      Preferred solution is not to cache these resources.
      Tomcat caches Jar resources that are in META-INF/resources. Esesntials has explicit paths to META-INF/resources, we should keep these images outside META-INF.
      from https://tomcat.apache.org/tomcat-8.5-doc/config/resources.html

      JAR resources
      JarResources are searched after the main resources but before the PostResources. They will be searched in the order they are defined. To configure JarResources, nest a <JarResources> element inside the <Resources> element. The configuration attributes are the same as for PreResources.
      During web application start, the JAR scanning process checks scanned JARs for content under /META-INF/resources. Where found, this static content is added to the JarResources.

      main:
      [echo] Press Ctrl-C to stop the Cargo container...
      [WARNING] [talledLocalContainer] 30-Nov-2017 15:32:10.769 WARNING [http-nio-8080-exec-5] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/feature/images/screenshots/video03.png] to the cache for web application [/essentials] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      [WARNING] [talledLocalContainer] 30-Nov-2017 15:32:10.769 WARNING [http-nio-8080-exec-3] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/feature/images/screenshots/urlrewriter01.png] to the cache for web application [/essentials] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      [WARNING] [talledLocalContainer] 30-Nov-2017 15:32:10.769 WARNING [http-nio-8080-exec-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/feature/images/screenshots/video01.png] to the cache for web application [/essentials] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      [WARNING] [talledLocalContainer] 30-Nov-2017 15:32:10.771 WARNING [http-nio-8080-exec-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/feature/images/screenshots/video01.png] to the cache for web application [/essentials] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
      [INFO] [talledLocalContainer] 30-Nov-2017 15:32:11.012 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.webresources.Cache.backgroundProcess The background cache eviction process was unable to free [10] percent of the cache for Context [/essentials] - consider increasing the maximum size of the cache. After eviction approximately [10,079] KB of data remained in the cache.

      Attachments

        Activity

          People

            pulsarteam Pulsar Team
            abanck Arent-Jan Banck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: