Background Task runs for days


After jenkins finishes the build and upload the analysis report to sonar server, the background task cannot be finished after 3 days. Does somebody have the same experience or help me out? Thank you!
We use:

  • SonarQube 7.1, Community Version,
  • Java project, ~3M,
  • Git blame function
  • Sonargraph Integration
  • sonar.ce.javaOpts=-Xmx12G -Xms1G -XX:+HeapDumpOnOutOfMemoryError (there are still ~3G free )


Hi Lu,

Whats your SonarJava version? You can find it in Administration > Marketplace


Hi Ann,

Firstly thanks for your reply!
Plugin SonarJava we use is: 5.6 (build 15032)


Hmm… It was silly of me to ask for that; any problems in SonarJava wouldn’t happen server-side.

Does this happen

  • consistently?
  • always on the same project?
  • since some event or upgrade?

What happens if you cancel the task?


Hi Ann,

We upgrade sonarqube server from 5.6.4 to 7.1, after that, small project is not impacted. the background task for big project (~3M) is never successful. For version 5.6.4, no problem for the big project.



It’s likely that this is relevant:

  • SONAR-10253 - Analysis in Compute Engine is too slow on modules having thousands of files

It’s fixed in 7.4 (current ETA early Oct.).

It’s also possible that this is relevant (you don’t mention your DB flavor):

  • SONAR-10943 - Analysis may be kept pending indefinitely in Compute Engine on PostgreSQL

This one was fixed in 7.3, so upgrading to the current version might help.


1 Like

Hi Ann,

We use Oracle DB, therefore looks quite close to our problem. We will wait to test version 7.4.

Thanks again for your help!



We encountered the same issue in SonarQube 7.4 (Oracle database). We are now testing the issue with 6.7. I will update the results here.

3 posts were split to a new topic: Background tasks get stuck on different projects