简体   繁体   English

声纳占用太多空间和时间

[英]Sonar taking too much space and time

I am new to Sonar and trying to configure it to work on my project correctly after an upgrade that was done by some one else. 我是Sonar的新手,并尝试将其配置为在其他人完成的升级后可以正确地在我的项目上工作。 We upgraded our Sonar server from 3.x version to 5.0.1 version. 我们将Sonar服务器从3.x版本升级到了5.0.1版本。 After some configuration management we made it to run successfully but now each build is taking like 2.5 GB of DB disk space and taking like 2 hours. 经过一些配置管理,我们使其成功运行,但是现在每个构建占用的磁盘磁盘空间约为2.5 GB,并且占用的时间约为2个小时。 Previously it was not taking that much time. 以前不需要那么多时间。 Previously, (I do not know what the config was like), the issues raised by Sonar was like in hundreds but now it is like 2 million. 以前,(我不知道配置是什么样的),Sonar提出的问题就像成百上千,但现在变成了200万。

Where could be the issue. 问题可能在哪里。 I tried searching for this but did not find much. 我尝试搜索此文件,但没有找到太多。 I am guessing that it is analyzing files that it was not previously like generated files or generated js files. 我猜想它正在分析以前不像生成的文件或生成的js文件的文件。

I am using java 7, and gwt which does generate some JS files. 我正在使用Java 7,gwt确实会生成一些JS文件。 Where can i look to filter the files for analysis. 我在哪里可以过滤文件进行分析。 The Sonar is running through Jenkins which is run during a maven project job. 声纳正在运行Jenkins,而Jenkins是在maven项目工作期间运行的。 Any help will be appreciated. 任何帮助将不胜感激。

In Sonar click on the violations, you should be able to see the list of files analysed for violations. 在Sonar中,单击违规,您应该能够查看分析的违规文件列表。 Also a simple check could be on the LOC reported from your previous and current analysis. 也可以对以前和当前分析报告的LOC进行简单检查。

Also check the values against sonar.sources property 还要对照sonar.sources属性检查值

I would recommand that you have a look (or publish here) the Jenkins log specific to the SonarQube job on your application. 我建议您查看(或在此处发布)应用程序上特定于SonarQube作业的Jenkins日志。 Maybe the 'upgrade' has added some more plugins that are responsible of the delay. 也许“升级”已经添加了更多的插件来延迟。 Or have added new rules to the Quality Profile you are using. 或者已将新规则添加到您正在使用的质量配置文件中。 So I would recommand you check it and deactivate rules that are not pertinent for you. 因此,我建议您检查一下并停用与您无关的规则。

Anyway, more info on your configuration (DB, local/server install, etc.) would be helpfull, before to look for changes in your code/application like generated files. 无论如何,在寻找代码/应用程序中的更改(如生成的文件)之前,有关配置的更多信息(数据库,本地/服务器安装等)将很有帮助。

Regards. 问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM