Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9157

Very slow rendering Pull requests settings page in Repository settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Highest
    • 4.13.0
    • None
    • None
    • None

    Description

      This reproduced even on empty bitbucket, without any plugins. Time of rendering such page is very nondetermined.

      2016-09-14 13:54:52,053 | http-nio-7990-exec-1 | @9JFZDWx834x93x0 | admin | 11xeorh
      [2689ms] - "GET /projects/PROJECT_1/repos/rep_1/settings/pull-requests HTTP/1.1"
        [1ms] - ApplicationUser com.atlassian.bitbucket.user.UserService.getUserById(int)
        [1ms] - InternalRepository com.atlassian.stash.internal.repository.RepositoryDao.getBySlug(String,String,String)
        [1ms] - Page com.atlassian.bitbucket.user.UserService.findGroupsByUser(String,PageRequest)
        [1ms] - InternalRepository com.atlassian.stash.internal.repository.RepositoryDao.getBySlug(String,String,String)
        [2ms] - ApplicationUser com.atlassian.bitbucket.user.UserService.getUserById(int)
        [1ms] - InternalRepository com.atlassian.stash.internal.repository.RepositoryDao.getBySlug(String,String,String)
        [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
        [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
        [1ms] - PullRequestMergeConfig com.atlassian.bitbucket.pull.PullRequestService.getMergeConfig(GetPullRequestMergeConfigRequest)
          [1ms] - MergeConfig com.atlassian.stash.internal.merge.MergeConfigHelper.getForRepository(Repository)
            [1ms] - InternalRepositoryMergeConfig com.atlassian.stash.internal.merge.RepositoryMergeConfigDao.findByRepository(int)
        [2308ms] - Render soy: bitbucket.internal.page.repositoryPullRequestSettings
          [1ms] - void com.atlassian.stash.internal.avatar.AvatarUrlDecorator.decorate(Builder,Project)
          [2ms] - Page com.atlassian.stash.experimental.user.ExperimentalPermissionAdminService.searchUsers(PermittedUserSearchRequest,PageRequest)
            [2ms] - Page com.atlassian.stash.internal.user.RepositoryPermissionDao.findHighestPermissionPerUser(int,UserType,String,PageRequest)
          [285ms] - Page com.atlassian.stash.experimental.user.ExperimentalPermissionAdminService.searchUsers(PermittedUserSearchRequest,PageRequest)
            [1ms] - Page com.atlassian.stash.internal.user.ProjectPermissionDao.findHighestPermissionPerUser(int,UserType,String,PageRequest)
          [1ms] - Set com.atlassian.bitbucket.repository.RepositoryService.getCloneLinks(RepositoryCloneLinksRequest)
          [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
          [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
          [23ms] - void com.atlassian.plugin.webresource.WebResourceManager.includeResources(Writer,UrlMode)
            [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
            [3ms] - UserSettings com.atlassian.sal.api.usersettings.UserSettingsService.getUserSettings(UserKey)
              [1ms] - ApplicationUser com.atlassian.stash.internal.user.InternalUserService.getUserByKey(UserKey,boolean)
            [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
            [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
            [2ms] - UserSettings com.atlassian.sal.api.usersettings.UserSettingsService.getUserSettings(UserKey)
              [1ms] - ApplicationUser com.atlassian.stash.internal.user.InternalUserService.getUserByKey(UserKey,boolean)
          [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
          [1ms] - String com.atlassian.stash.internal.plugin.PluginSettingDao.get(String,String)
      

      It simple local run of atlas-debug with any plugin. It also always reproduced on any production server. The 2 second it is after 10 times pressing F5. It can be 300ms and also 17s on the same instance without any load.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              3652ed9ede2e Alexey Efimov
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: