Sonar Analysis is very slow , please suggest any actions to speedup

Sonar analysis is running very slow in our project , wanted to know if there is any actions needed to improve the timing

SonarQube plugin 2.3 in jenkins
Sonarqube 4.3 used for analysis
SonarQube Enterprose edition we are using

Let me know if any actions that will speedup the analyis.

Regards,
Prajwal

Hey there.

  • Are you really using SonarQube v4.3, a version that was released in July 2014?
  • What languages are you analyzing? What’s the size of your codebase?
  • How long is analysis taking?

Hi Colin,

*Yes we are using sonar-scanner-cli-4.3.0.2102-linux.zip to analyse the report
*typrescript and no of line is 21,660
*13 to 15 minute for the analysis

Hi Colin,

*Yes we are using sonar-scanner-cli-4.3.0.2102-linux.zip to analyse the report
*typrescript and no of line is 21,660
*13 to 15 minute for the analysis

SonarQube Enterprise Edition Version 8.9.9

Thanks.

Based on the timestamps in the logs (or you can share them here), where is most of the time being taken up (what’s going on in the logs?)

Thanks for the response

As i checked the logs

INFO: Load/download plugins (done) | time=523328ms

Load/downloads plugin alone taking time=523328ms which is 8.7 minutes which is major time consuming

Can you suggest how to reduce this ??

Regards,
Prajwal

At this point, the culprit is likely a infrastructure/network issue between your Jenkins server and your SonarQube server.

  • How is the resource utilization on your SonarQube server (CPU/Memory)
  • What’s the ping/latency like between your Jenkins and SonarQube server? How close (or far) away from each other are they?