Build results summary pages are slow or unresponsive
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
When opening certain build results summary pages, Bamboo's UI is slow to respond or unresponsive, and Bamboo's memory usage spikes
Diagnosis
Diagnostic Steps
- A large number of test cases per build plan, in the tens or hundreds of thousands, can cause this issue to occur
To count the number of test cases per build plan, run the following query in your database:
SELECT b.full_key AS plan_key, COUNT(*) AS test_cases FROM BUILD b LEFT OUTER JOIN TEST_CLASS cl ON b.build_id = cl.plan_id LEFT OUTER JOIN TEST_CASE ON cl.TEST_CLASS_ID = TEST_CASE.TEST_CLASS_ID GROUP BY b.build_id, b.buildkey, b.full_key ORDER BY COUNT(*) DESC
Cause
When viewing a build results summary, all test cases for that plan are loaded into memory. If too many records exist, memory resourcing issues can occur and performance issues may result. More information can be found in the following bug report: BAM-17202 - Getting issue details... STATUS
Resolution
Please note: if you suspect you are experiencing this issue, we recommend you contact Atlassian Support for further confirmation before proceeding.
Orphaned test case records can be safely deleted from your database. The steps to do this are described below.
Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.