Excessive WARNING Cache Messages in catalina.out for Confluence

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

1 2 "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

1 2 3 4 5 6 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

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.