Create zip button on create support zip take very long to show up

Description

Copied from https://jira.atlassian.com/browse/CONFSERVER-58998 :

Issue Summary

When going to create support zip in troubleshooting and support tools admin page, create zip button takes a long time to show up, for EAC, it takes over 60s. Better implementation is needed to make it more performant.  

Environment

  • Confluence 6.13.6
    * Data Center

Steps to Reproduce

  1. Login as admin

  2. Go to troubleshooting and support tools -> create support zip

  3. create zip button is not showing, it takes over 60s to appear (in EAC)

Expected Results

Create zip button will show instantly. 

Actual Results

create zip button did show instantly, it takes a long time for it to show. 

The below exception is thrown in the atlassian-confluence.log file:

Notes

 From thread dump we can see 

com.atlassian.troubleshooting.confluence.ConfluenceApplicationInfo.getCustomDecorators execution takes about 50s. The code loops through default decorators and all spaces and read space decorator from database, which is not performant.  

Workaround

Currently there is no known workaround for this behaviour. A workaround will be added here when available

Environment

None

Assignee

Unassigned

Reporter

Artur Yapparov

Components

Labels

None

Add-on Type

None

Team

None

CC

None

Risk factor

None

Affected Product/s

None

Priority

Major
Configure