为什么InitialOpenIssuesSensor需要这么长时间?

时间:2019-08-08 12:32:26

标签: sonarqube

我有一个SonaQube 5.1安装程序,它已连接到本地MySQL 5.6数据库。我用它来分析主要使用ADF框架的Java代码。我配置了许多单独的项目(大小和复杂性相似),平均需要2-3分钟进行分析。但是,其中一个项目(USViewController)需要25分钟以上才能完成。我试图了解原因并缩短时间。

我尝试重新启动SonarQube进程(/opt/sonaqube-5.1/bin/linux-x86-64/sonar.sh stop / start)和MySQL服务(配置为服务,因此仅服务mysql stop / start) 。我也尝试过在声纳数据库中执行OPTIMIZE TABLE project_measures,但无济于事。

我从输出中看到执行被卡在名为InitialOpenIssuesSensor的步骤上:

12:30:14.435 INFO  - Sensor JavaSquidSensor (done) | time=12087ms
12:30:14.435 INFO  - Sensor Lines Sensor
12:30:14.473 INFO  - Sensor Lines Sensor (done) | time=38ms
12:30:14.473 INFO  - Sensor QProfileSensor
12:30:14.478 INFO  - Sensor QProfileSensor (done) | time=5ms
12:30:14.478 INFO  - Sensor InitialOpenIssuesSensor
12:57:08.198 INFO  - Sensor InitialOpenIssuesSensor (done) | 
time=1613720ms
12:57:08.198 INFO  - Sensor ProjectLinksSensor
12:57:08.220 INFO  - Sensor ProjectLinksSensor (done) | time=22ms
12:57:08.220 INFO  - Sensor VersionEventsSensor
12:57:08.279 INFO  - Sensor VersionEventsSensor (done) | time=59ms

将此与其他类似项目之一进行比较

09:17:44.617 INFO  - Sensor JavaSquidSensor (done) | time=11011ms
09:17:44.617 INFO  - Sensor Lines Sensor
09:17:44.741 INFO  - Sensor Lines Sensor (done) | time=124ms
09:17:44.741 INFO  - Sensor QProfileSensor
09:17:44.750 INFO  - Sensor QProfileSensor (done) | time=9ms
09:17:44.750 INFO  - Sensor InitialOpenIssuesSensor
09:17:45.604 INFO  - Sensor InitialOpenIssuesSensor (done) | time=854ms
09:17:45.604 INFO  - Sensor ProjectLinksSensor
09:17:45.613 INFO  - Sensor ProjectLinksSensor (done) | time=9ms
09:17:45.613 INFO  - Sensor VersionEventsSensor
09:17:45.654 INFO  - Sensor VersionEventsSensor (done) | time=41ms

0 个答案:

没有答案