Cache warnings in catalina logging

Issue

A similar stacktrace than the one below is repeated all the time on your catalina logs.

21-Jan-2016 18:36:17.531 WARNING [http-nio-80-exec-4] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/plugins/workflow-support.hpi] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jan-2016 18:36:17.531 WARNING [http-nio-80-exec-4] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/plugins/dockerhub-notification.hpi] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

Environment

  • CloudBees Jenkins Enterprise
  • CloudBees Jenkins Operations Center
  • Jenkins
  • Tomcat >= 8

Resolution

Increase the cache size instead of disabling it. The config block inside of the <Context block on Tomcat 8 should fix the issue.

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

That should clean up the cache warnings you were noticing. You can increase the cache size further if needed of course.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.