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
- Create 10000+ repositories
- 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
- duplicates
-
BSERV-9367 HomeController bottleneck when 20,000 repositories
- Closed
- mentioned in
-
Page Loading...