NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.
Large Confluence instances with many spaces are seeing severe performance problems. See linked issues
PageNotFound action can render Confluence inoperable
Umbrella Issue for a large Instance with many spaces
Lots of spaces, particularly new or favourite spaces (> 100) causes dashboard to be slow