Sonar Multicore

别等时光非礼了梦想. 提交于 2019-12-13 04:21:56

问题


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.



来源:https://stackoverflow.com/questions/11861969/sonar-multicore

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!