Tasks at Sonarqube Backgound Tas is having a high waiting time and is not being processed

I am currently experiencing performance issues in our SonarQube Server Enterprise platform, mainly during the execution and processing of code analysis.
As part of the analysis carried out, we have identified a high use of the Data IO Percentage indicator in the database used by SonarQube. This behavior coincides with a significant increase in the volume of information processed by the platform.

Over the past few months, the number of repositories and code lines analyzed by SonarQube has increased significantly, almost doubling the volume previously processed.
As a result, we have observed that analyses remain for longer time in queue before completing their processing, affecting platform response times and service availability for different development teams.

We currently use the following configuration:

  • SonarQube Server: Enterprise Edition 2026.1
  • BD: SQL Server, version: 12.00.256
  • Java: 21.0.12.1+1-LTS
  • infrastructure: VM

Compute Engine Tasks

  • Worker Count: 1
  • Max Worker Count: 10

Compute Engine JVM State

  • Max Memory (MB): 2048
  • Free Memory (MB): 121
  • System Load Average: -100.0% (last minute)
  • Threads: 41

Hey @Joaquin, welcome to the Community! I suggest you go through our background task performance troubleshooting doc. Also, which type of SQL Server are you using? Is it an Azure-hosted service, and if so, which particular service? We have seen in the past users having performance/scalability problems with Azure SQL Managed Instance.

Hello Andrés, thank you for the welcome and recommendation.

We reviewed the database configuration used by our Sonarqube instance and currently have the following configuration:

  • Service: Azure SQL Database
  • Service Tier: General Purpose
  • Compute Tier: Serverless
  • Hardware: Standard-series (Gen5)
  • Maximum vCores: 6
  • Minimum vCores: 0.75

We are currently observing a high use of the Data IO Percentage indicator, mainly during periods of increased analysis processing in SonarQube. We have also identified an increase in processing times and the permanence of analyses in queue.

Based on this information, do you think the General Purpose / Serverless configuration might be related to the observed performance issues? Is there any recommendation from SonarSource regarding the use of Serverless vs. Provisioned or vCore sizing for this type of load?

Hey @Joaquin, most likely the bottleneck that is slowing down your background tasks is the DB. You could have a look at (another) troubleshooting doc, this one is for DB performance in particular.

But in any case, I can give you some general pointers: Azure SQL DB is known to perform poorly for SonarQube’s type of workload. In one particular case, one of our customers went to the lengths of consulting Microsoft engineers, who concluded SonarQube’s small, write-heavy query pattern doesn’t fit Azure PaaS DB well. Performance recovered when moving to a VM-based SQL Server.

Another factor to take into account is a known SQL Server performance issue in SonarQube Server 2026.1, which is fixed in 2026.5. Have a look at this ticket. You might want to consider updating.