we are running self hosted SonarQube Developer Edition - Version 9.9 (build 65466). After recent upgrade from 9.5 we see dramatic increase of background time taken by analysis. Before it was about 1-2 seconds, now it’s 1-20 minutes.
Snapshot of background tasks log from 23.3.2023 when it was upgraded:
My first recommendation would be that you make sure you’ve run database maintenance (that is typically automated in big setups) such as refreshing database statistics and the indexes of each table. A lot of data shifts around during upgrades, which means up-to-date statistics and indexes are important for performance.
I learned today of an internal investigation related to Microsoft SQL Server performance and SonarQube v9.9 LTS.
While I still recommend the steps I previously outlined, I’ll keep you up to date here about any other findings (and somebody from the team may get in touch as well!)
Thank you Colin, I’m out of office this week, but we will check your recommendation, and also we stay tuned for any kind of news about the findings of your colleagues.