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

Unauthenticated home page causes slow page load times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 6.1.2, 7.1.2
    • Dashboard

    Description

      Issue Summary

      When unauthenticated, selecting the bitbucket home logo in the top right will cause Bitbucket to check every repository to see if it is public or not. With many repositories or slower DB connections this process can take a long time, leading to slow page load times.

      Steps to Reproduce

      1. Create 10000+ repositories
      2. Logout of Bitbucket and click the Bitbucket "home" logo in the top left

      Expected Results

      Page loads in respectable time

      Actual Results

      Page load can take up to minutes at a time. You can see in profiling logs the following slow request:

      2020-04-14 16:12:41,625 | http-nio-7990-exec-656 | @1X9KUBKx971x22632272x12 | - | -
      [91111.8ms] - "GET / HTTP/1.0"
       [91108.0ms] - Page com.atlassian.bitbucket.repository.RepositoryService.findAll(PageRequest)
        [91108.0ms] - Page com.atlassian.stash.internal.Dao.findAll(PageRequest,Predicate)
      

      A HAR file will show slow FTTB on the main page request.

      Workaround

      Disable the public repositories feature (if not used) by setting the following in bitbucket.properties and restartring:

      feature.public.access=false
      

      Attachments

        Issue Links

          Activity

            People

              behumphreys Ben Humphreys
              ephillips@atlassian.com Edward
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync