Background Task runs for days

background_task
performance

(Lu Wang) #1

Hi!

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 )

Best,
Lu


(G Ann Campbell) #2

Hi Lu,

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

Ann


(Lu Wang) #3

Hi Ann,

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

Best,
Lu


(G Ann Campbell) #4

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?

Ann


(Lu Wang) #5

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.

Best,
Lu


(G Ann Campbell) #6

Hi,

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.

Ann


(Lu Wang) #7

Hi Ann,

We use Oracle DB, therefore https://jira.sonarsource.com/browse/SONAR-10253 looks quite close to our problem. We will wait to test version 7.4.

Thanks again for your help!

Best,
Lu