Sonar Multicore

2019-09-07 06:38发布

问题:

I'm just wondering if there's anyway to let sonar use multiple cores when analyzing the code.

Or if there's any other ways to improve performance overall.

Thanks

回答1:

Unless the sonar process is mult-threaded it's unlikely the runner can take major advantage of your multi-core machine.

The biggest performance boosts I can recommend are:

  • Run your build on the same machine as the Sonar database. JDBC calls across a WAN network can seriously affect your Sonar build times.
  • If you use the views plugin consider reducing the number of views. This creates lots of extra JDBC calls.


回答2:

At the moment most of the analyzers sonar uses are single threaded. I suggested to analyse several plugins parallel. https://jira.codehaus.org/browse/SONAR-3025

You can vote if you want, but at the moment there is no way to use all cores. If you have many projects you could just analyse them in parallel manually.



标签: sonarqube