Sonarqube performance degrade

Hi Team,

The sonarqube application has been migrated to the 7.9.3 version from the 7.7 version.

After up-gradation, the runtimes of the sonar scanners have evolved to roughly 55 minutes to taken execution (from 5 to 10 minutes before?).

What exactly (components) takes that much time now? could you please compare it with both logs?

sonarqube-log.zip (515.4 KB)

Regards,
Nataraj.R

Hello,

I’m sharing some thoughts that could help to clarify the problem.

SQ 7.9.3 was released a long time ago so a lot of other users would have faced the problem before you but actually no one complained so I suspect the root cause is coming from the machine where you run the scan.
Are you sure both machines have the same capabilities (CPU, memory, disk)?

Do you reproduce the problem with latest version SQ 8.5?

Thanks
Alex

Hi Alexandre,

Please find the inline comments.

  1. Are you sure both machines have the same capabilities (CPU, memory, disk)?

    We didn’t change the scanner machine even though it running for a long time. After upgraded the version. we were facing a performance degradation problem has occurred. Is it possible to compare (components) takes that much time of log file which I attached earlier?

  2. Do you reproduce the problem with the latest version SonarQube 8.5?

    Sure, I will try to upgrade to the latest version.

Hello,

I already compared the analysis time and the diff is located on the scan of the Java code (main and tests):

7.7:

  • … started building on agent icore-ext-agent-14
  • 7257 source files to be analyzed
  • Java Main Files AST scan (done) | time=189731ms
  • 2377 source files to be analyzed
  • Java Test Files AST scan (done) | time=59441ms

7.9.3:

  • … started building on agent icore-ext-agent-10
  • 7303 source files to be analyzed
  • Java Main Files AST scan (done) | time=2372326ms (=> 39min)
  • 2397 source files to be analyzed
  • Java Test Files AST scan (done) | time=683114ms (=> 11min)

If you can reproduce the problem with the latest 8.5 version, then I really suggest to search for differences at the agent/machine level.

Alex