Excessive WARNING Cache Messages in catalina.out for Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

There are excessive WARNINGs in catalina.out related to Cache Management.

 

The following repeatedly appears in the catalina.out

"WARNING [http-nio-8090-exec-3] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/xxxxx/xxxx/xxxxx.xxx]
 to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache"

Diagnosis

Environment

  • This behaviour occurs regardless of the environment

Possible Cause

There is new implementation of WARNINGs in Tomcat 8 while in Tomcat 7 does not record these warnings. 

Tomcat 8
if (newSize > maxSize) {
      // Unable to create sufficient space for this resource
      // Remove it from the cache
      removeCacheEntry(path);
      log.warn(sm.getString("cache.addFail", path));
  }

Resolution

This issue is fixed in Confluence 6.0.2

Workaround

Suppress cache log warnings

At the moment, these WARNINGs are harmless.  To reduce the noise level of these WARNINGs:

  1. Go to Administration >> Logging and Profiling
  2. Set the logging level to ERROR for org.apache.catalina.webresources.Cache
    1. If the class does not exists, please add the class to the list

Last modified on Nov 20, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.