Hello Sonar Community,
We’re using SonarQube 8.4 to analyze our Java & Angular JS projects. We’re currently happy with the results that we’re achieving, but we’re not really happy about the performance of the analysis, specially in our biggest project. This project has 516k lines of code (12258 files) and when we run the analysis using the ‘Sonar way’ quality profile for Java code it takes around 55’.
We run our analysis with the following command:
mvn clean package sonar:sonar
This command also runs the UTs (the execution of the UTs takes 7’ if we execute it alone)
Our Jenkins agents are virtual machines with the following flavor:
- 50 GB HDD (SSD)
- CPU (8 cores - Intel® Xeon® Gold 5220 CPU @ 2.20GHz)
- 16 GB RAM
What would be your recommendations in order to achieve a faster build?
- Adding more RAM to the VM / allocating more RAM to the analysis?
- Move our analysis to a VM with a better CPUs (frequency? cores?)
- Any specific configuration on maven or on the sonar analysis?