Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-43752

Slow page tree performance in the sidebar for large spaces in Confluence

    XMLWordPrintable

Details

    Description

      Summary

      Page tree (left navigation) load times for large spaces becomes increasingly poor as the number of pages in a space increases.

      In this instance, the customer has ~60,000 pages in one space and the page tree (left nav) takes ~8 seconds to load consistently.

      Other scenarios showed that this might take minutes to load as well.

      Environment

      • Customer is on Confluence 5.8.18
      • Reproduced in Confluence 5.9.12

      Steps to Reproduce

      1. Create a new confluence instance and add a test space
      2. Create several thousand pages within said space
        • In my test instance, I created ~28,000 pages to test
          conf=# select count (*) from content where spaceid = '1638415';
           count
          -------
           28788
          (1 row) 
          
      3. Navigate to a page within the space to observe behavior

      Expected Results

      1. Page tree / left navigation should take a reasonable amount of time to load (2-3 seconds ?)
      2. Page tree loads simultaneously but asynchronously with page body to reduce total wait time on the page

      Actual Results

      Upon repro:

      1. Take note that the page body/contents load quickly, but the page tree (left nav) continues to load for 5-8 more seconds
      2. Visually, the main page may load quickly, but it is time consuming to move around the space and have to wait on this for every page load
      3. HAR files show a consistent 7 to 8 second delay in loading the page tree on a space with ~60,000 pages
      4. HAR files show a consistent 4 to 5 second delay in loading the page tree on a space with ~28,000 pages

      It seems to increase with the number of pages in the space, particularly a flat space.

      Based on the HAR output, the page tree doesn't begin to load immediately, instead starts 2-3 seconds after initial GET



      Logs

      These appear to be related:

      2016-09-12 16:35:35,010 WARN [http-nio-8000-exec-101] [confluence.util.profiling.DefaultActivityMonitor] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1473698063212, threadId=239, threadName='http-nio-8000-exec-101', userId='user@example.com', type='web-request', summary='/display/spacename/page+name?src=contextnavpagetreemode'}
      
      2016-09-12 16:35:35,724 WARN [http-nio-8000-exec-13] [confluence.util.profiling.DefaultActivityMonitor] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1473698066566, threadId=150, threadName='http-nio-8000-exec-13', userId='user@example.com', type='web-request', summary='/display/spacename/page+name?src=contextnavpagetreemode'}
      
      2016-09-12 16:35:39,834 WARN [http-nio-8000-exec-81] [confluence.util.profiling.DefaultActivityMonitor] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1473698070020, threadId=218, threadName='http-nio-8000-exec-81', userId='user@example.com', type='web-request', summary='/display/spacename/page+name?src=contextnavpagetreemode'}   
      

      Workaround

      unknown

      Attachments

        1. CPU_Load.png
          CPU_Load.png
          360 kB
        2. har-edited.png
          har-edited.png
          161 kB
        3. mytest2-results.png
          mytest2-results.png
          195 kB
        4. mytest3.har
          4.98 MB
        5. mytest3-results.png
          mytest3-results.png
          60 kB
        6. mytest-results.png
          mytest-results.png
          191 kB
        7. repro.png
          repro.png
          175 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jwyllys Justin W.
              Votes:
              43 Vote for this issue
              Watchers:
              58 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: