Edge Index Plugin appears to be causing some slow performance.

XMLWordPrintable

    • 5
    • Severity 3 - Minor
    • 0

      Creating and saving a page with the Edge Index Plugin enabled can take around 1 second or more. Disabling this plugin appears to increase performance, and Performance Profiling logs support this, in that some behaviour which happens with the plugin is enabled does not appear to happen when it is disabled.

      This is the profiling with the plugin enabled:

      2012-09-19 14:48:23,950 DEBUG [http-10430-6] [atlassian.util.profiling.UtilTimerStack] log [724ms] - /pages/docreatepage.action
        [0ms] - UserAccessor.getUser()
        [0ms] - UserAccessor.getUser()
        [722ms] - XW Interceptor: Before defaultStack: /pages/docreatepage.action (CreatePageAction.doAdd())
          [1ms] - DraftManager.getDraft()
          [1ms] - UserAccessor.getUser()
          [0ms] - UserAccessor.getPropertySet()
          [0ms] - SpaceAwareInterceptor.intercept()
          [6ms] - PageAwareInterceptor.intercept()
            [5ms] - PageManager.getPage()
            [0ms] - SpaceManager.getSpace()
            [1ms] - PermissionManager.hasPermission()
              [0ms] - UserAccessor.hasMembership()
          [0ms] - CommentAwareInterceptor.intercept()
          [0ms] - UserAwareInterceptor.intercept()
          [0ms] - BootstrapAwareInterceptor.intercept()
          [0ms] - SpaceManager.getSpace()
          [0ms] - UserAccessor.getUser()
          [0ms] - UserAccessor.getConfluenceUserPreferences()
          [0ms] - PermissionManager.hasCreatePermission()
          [0ms] - SpaceManager.getSpace()
          [672ms] - XW Interceptor: After defaultStack: /pages/docreatepage.action (CreatePageAction.doAdd())
            [2ms] - PageManager.getPage()
            [628ms] - XW Interceptor: After validatingStack: /pages/docreatepage.action (CreatePageAction.doAdd())
              [0ms] - PageTemplateManager.getGlobalPageTemplates()
              [9ms] - ContentEntityManager.saveContentEntity()
                [4ms] - LinkManager.updateOutgoingLinks()
              [0ms] - UserAccessor.getUser()
              [339ms] - com.atlassian.bonnie.LoggingReentrantLock.indexWriteLock
                [3ms] - com.atlassian.bonnie.LoggingReentrantLock.searcherRefreshLock
              [0ms] - UserAccessor.getUser()
              [0ms] - UserAccessor.getPropertySet()
              [0ms] - UserAccessor.getUserProfilePicture()
              [0ms] - UserAccessor.getUserProfilePicture()
              [2ms] - NotificationManager.getNotificationsBySpaceAndType()
              [1ms] - NotificationManager.getNotificationsByPage()
              [17ms] - NotificationManager.findNotificationsByFollowing()
              [144ms] - NotificationManager.addPageNotification()
              [0ms] - DraftManager.getDraft()
              [13ms] - DraftManager.removeDraft()
      

      This is the profiling with the plugin disabled:

      2012-09-19 17:12:57,717 DEBUG [http-10430-3] [atlassian.util.profiling.UtilTimerStack] log [99ms] - /pages/docreatepage.action
        [0ms] - UserAccessor.getUser()
        [0ms] - UserAccessor.getUser()
        [98ms] - XW Interceptor: Before defaultStack: /pages/docreatepage.action (CreatePageAction.doAdd())
          [0ms] - DraftManager.getDraft()
          [0ms] - UserAccessor.getUser()
          [0ms] - UserAccessor.getPropertySet()
          [0ms] - SpaceAwareInterceptor.intercept()
          [2ms] - PageAwareInterceptor.intercept()
            [2ms] - PageManager.getPage()
            [0ms] - SpaceManager.getSpace()
            [0ms] - PermissionManager.hasPermission()
              [0ms] - UserAccessor.hasMembership()
          [0ms] - CommentAwareInterceptor.intercept()
          [0ms] - UserAwareInterceptor.intercept()
          [0ms] - BootstrapAwareInterceptor.intercept()
          [0ms] - SpaceManager.getSpace()
          [0ms] - UserAccessor.getUser()
          [0ms] - UserAccessor.getConfluenceUserPreferences()
          [0ms] - PermissionManager.hasCreatePermission()
          [0ms] - SpaceManager.getSpace()
          [92ms] - XW Interceptor: After defaultStack: /pages/docreatepage.action (CreatePageAction.doAdd())
            [2ms] - PageManager.getPage()
            [87ms] - XW Interceptor: After validatingStack: /pages/docreatepage.action (CreatePageAction.doAdd())
              [0ms] - PageTemplateManager.getGlobalPageTemplates()
              [3ms] - ContentEntityManager.saveContentEntity()
                [1ms] - LinkManager.updateOutgoingLinks()
              [0ms] - UserAccessor.getUser()
              [0ms] - UserAccessor.getPropertySet()
              [0ms] - UserAccessor.getUserProfilePicture()
              [0ms] - UserAccessor.getUserProfilePicture()
              [0ms] - NotificationManager.getNotificationsBySpaceAndType()
              [1ms] - NotificationManager.getNotificationsByPage()
              [0ms] - NotificationManager.findNotificationsByFollowing()
              [72ms] - NotificationManager.addPageNotification()
              [0ms] - DraftManager.getDraft()
              [5ms] - DraftManager.removeDraft()
      

      As you can see this is a performance improvement from 724ms to 99ms.

        1. atlassian-confluence.log
          218 kB
          Denise Unterwurzacher [Atlassian]

            Assignee:
            Unassigned
            Reporter:
            Denise Unterwurzacher [Atlassian] (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: