Sonar Multicore

2019-09-07 06:32发布

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

标签: sonarqube
2条回答
贼婆χ
2楼-- · 2019-09-07 06:53

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.

查看更多
别忘想泡老子
3楼-- · 2019-09-07 06:56

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.
查看更多
登录 后发表回答