【问题标题】:SonarQube purge (LTS 5.6.1) takes ages for projectSonarQube purge (LTS 5.6.1) 需要很长时间才能完成项目
【发布时间】:2017-08-17 13:32:04
【问题描述】:

每次特定项目运行其分析时,purge db 都需要很长时间。完整的后台任务大约需要 11 分钟,其中通常 8-10 分钟被 purge DB 消耗。

如何避免清除使我的分析变慢?

2017.03.24 14:58:05 INFO  [o.s.s.c.s.ComputationStepExecutor] Persist tests | time=1187ms
2017.03.24 14:58:05 INFO  [o.s.s.c.s.ComputationStepExecutor] Persist cross project duplications index | time=0ms
2017.03.24 14:58:37 INFO  [o.s.s.c.s.ComputationStepExecutor] Enable snapshot | time=31542ms
2017.03.24 14:58:42 INFO  [o.s.s.c.s.ComputationStepExecutor] Index components | time=5184ms
2017.03.24 15:06:14 INFO  [o.s.s.c.s.ComputationStepExecutor] Purge db | time=452392ms
2017.03.24 15:06:14 INFO  [o.s.s.c.s.ComputationStepExecutor] Apply permissions | time=47ms

【问题讨论】:

  • 要获得更多关于正在发生的事情的详细信息,您可以选择启用 TRACE 日志(注意,内部性能影响)并查看哪些 SQL 请求非常缓慢和/或经常执行.此外,您应该在帖子中指定您使用的 SGBD(与这个主要与数据库相关的步骤高度相关)。

标签: sonarqube sonarqube-ops


【解决方案1】:

数据库快满了,扩大数据库后,积压任务从 14 分钟回到了 4 分钟。将检查跟踪日志以确保这也是原因。

【讨论】:

    猜你喜欢
    • 2018-02-07
    • 2016-07-30
    • 2013-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多