CacheStatisticsEventPublisher causing CPU spike or slow performance in Confluence 5.4/5.5
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
Symptoms
Every 30 minutes, CPU spikes and/or performance suffers. The CacheStatisticsEventPublisher class is determined to be at fault (see Diagnosis below).
Diagnosis
You can use inbuilt VM or server monitoring tools, or a third party tool like New Relic, to pinpoint problematic requests/threads. You could also analyse a series of external thread dumps to determine long running threads, or to look for patterns of threads running during slow downs.
Workaround
The CacheStatisticsEventPublisher is currently not used, so it is safe to disable it from running. To do this, enter this JVM parameter:
1
-Dcom.atlassian.confluence.CacheStatisticsAnalyticsJob.repeatPeriodMinutes=-1
Resolution
This issue will be resolved in Confluence 5.6. Please upgrade to that version when it is available.
Was this helpful?