• <tfoot id='f0AuI'></tfoot>

      <i id='f0AuI'><tr id='f0AuI'><dt id='f0AuI'><q id='f0AuI'><span id='f0AuI'><b id='f0AuI'><form id='f0AuI'><ins id='f0AuI'></ins><ul id='f0AuI'></ul><sub id='f0AuI'></sub></form><legend id='f0AuI'></legend><bdo id='f0AuI'><pre id='f0AuI'><center id='f0AuI'></center></pre></bdo></b><th id='f0AuI'></th></span></q></dt></tr></i><div id='f0AuI'><tfoot id='f0AuI'></tfoot><dl id='f0AuI'><fieldset id='f0AuI'></fieldset></dl></div>

      <small id='f0AuI'></small><noframes id='f0AuI'>

      • <bdo id='f0AuI'></bdo><ul id='f0AuI'></ul>
        <legend id='f0AuI'><style id='f0AuI'><dir id='f0AuI'><q id='f0AuI'></q></dir></style></legend>

        Sonarqube 后台任务永远运行

        Sonarqube background tasks running forever(Sonarqube 后台任务永远运行)
        1. <legend id='OlnlL'><style id='OlnlL'><dir id='OlnlL'><q id='OlnlL'></q></dir></style></legend>

              <tbody id='OlnlL'></tbody>
            <i id='OlnlL'><tr id='OlnlL'><dt id='OlnlL'><q id='OlnlL'><span id='OlnlL'><b id='OlnlL'><form id='OlnlL'><ins id='OlnlL'></ins><ul id='OlnlL'></ul><sub id='OlnlL'></sub></form><legend id='OlnlL'></legend><bdo id='OlnlL'><pre id='OlnlL'><center id='OlnlL'></center></pre></bdo></b><th id='OlnlL'></th></span></q></dt></tr></i><div id='OlnlL'><tfoot id='OlnlL'></tfoot><dl id='OlnlL'><fieldset id='OlnlL'></fieldset></dl></div>
            <tfoot id='OlnlL'></tfoot>
              • <small id='OlnlL'></small><noframes id='OlnlL'>

                  <bdo id='OlnlL'></bdo><ul id='OlnlL'></ul>
                  本文介绍了Sonarqube 后台任务永远运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们已经运行 SonarQube 5.6.4 有一段时间了.然后我们突然观察到后台任务的队列在增加.在日志中,我们看到这样的消息:

                  We have running SonarQube 5.6.4 for a while now. Then we observed suddenly that the queue of background tasks is increasing. In the logs we see messages like that:

                  2017.07.24 13:56:10 INFO  [o.s.s.es.BulkIndexer] 0 requests processed (0 items/sec)
                  

                  每分钟一个日志条目.

                  然后开始的其他任务失败了:

                  Other tasks started then are failing with:

                  org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes were available: [[sonar-1498219166409][3QkGfCI8RUSn6vapRi5SSg][a2d477fdfe7a][inet[/127.0.0.1:9001]
                  

                  我不知道如何找到导致错误的任何东西.配置没有任何变化.

                  I do not know how to find anything which is causing the error. Nothing has changed in the configuration.

                  我重新启动了服务器,但没有任何改变.

                  I restarted the server but nothing changed.

                  对我来说值得注意的是弹性搜索似乎打开的端口数量:

                  What is remarkable for me is the number of ports which seems to be opened by elastic search:

                  tcp        0      0 localhost:etlservicemgr localhost:53058         ESTABLISHED 24/java
                  tcp        0      0 localhost:etlservicemgr localhost:53070         ESTABLISHED 24/java
                  tcp        0      0 localhost:53058         localhost:etlservicemgr ESTABLISHED 220/java
                  tcp        0      0 localhost:etlservicemgr localhost:52934         ESTABLISHED 24/java
                  tcp        0      0 a2d477fdfe7a:49760      sonar-db.netwo:postgres ESTABLISHED 220/java
                  tcp        0      0 localhost:etlservicemgr localhost:52846         ESTABLISHED 24/java
                  tcp        0      0 localhost:52924         localhost:etlservicemgr ESTABLISHED 119/java
                  tcp        0      0 localhost:52928         localhost:etlservicemgr ESTABLISHED 119/java
                  tcp        0      0 localhost:53076         localhost:etlservicemgr ESTABLISHED 220/java
                  tcp        0      0 localhost:etlservicemgr localhost:52866         ESTABLISHED 24/java
                  tcp        0      0 localhost:53074         localhost:etlservicemgr ESTABLISHED 220/java
                  tcp        0      0 localhost:etlservicemgr localhost:52922         ESTABLISHED 24/java
                  

                  (真的是五倍)

                  有人知道如何找到问题的原因吗?

                  Has anyone an idea how to find the cause of the problem?

                  sonarqube.properties 具有默认值.唯一的变化是:

                  sonarqube.properties has default values. Only changes are:

                  sonar.security.realm=LDAP
                  sonar.security.savePassword=true
                  sonar.security.updateUserAttributes=true
                  sonar.authenticator.downcase=true
                  sonar.authenticator.createUsers=true
                  

                  以及 LDAP 配置.

                  and the LDAP configuration.

                  推荐答案

                  虽然我仍然不明白为什么 taks 被卡住并且没有抛出异常,但我们的问题似乎通过将 worker 的堆空间从 500MB 增加到 1GB 来解决:

                  While I still not understand why the taks was stuck and did not throw an exception our problem seems to be solved by increasing the heapspace for the worker from 500MB to 1GB:

                  sonar.ce.javaOpts=-Xmx1024m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true
                  

                  这篇关于Sonarqube 后台任务永远运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Slf4j LoggerFactory.getLogger and sonarqube(Slf4j LoggerFactory.getLogger 和 sonarqube)
                  Security - Array is stored directly(安全性 - 数组直接存储)
                  SonarQube quot;Class Not Foundquot; during Main AST Scan(SonarQube“找不到类在主 AST 扫描期间)
                  Integrate Spock#39;s test with Sonar(将 Spock 的测试与声纳集成)
                  How do I make Hudson/Jenkins fail if Sonar thresholds are breached?(如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?)
                  automatically add curly brackets to all if/else/for/while etc. in a java code-base(自动将大括号添加到 java 代码库中的所有 if/else/for/while 等)

                  <tfoot id='rggcp'></tfoot>

                    <i id='rggcp'><tr id='rggcp'><dt id='rggcp'><q id='rggcp'><span id='rggcp'><b id='rggcp'><form id='rggcp'><ins id='rggcp'></ins><ul id='rggcp'></ul><sub id='rggcp'></sub></form><legend id='rggcp'></legend><bdo id='rggcp'><pre id='rggcp'><center id='rggcp'></center></pre></bdo></b><th id='rggcp'></th></span></q></dt></tr></i><div id='rggcp'><tfoot id='rggcp'></tfoot><dl id='rggcp'><fieldset id='rggcp'></fieldset></dl></div>

                        <tbody id='rggcp'></tbody>
                      <legend id='rggcp'><style id='rggcp'><dir id='rggcp'><q id='rggcp'></q></dir></style></legend>
                          <bdo id='rggcp'></bdo><ul id='rggcp'></ul>

                            <small id='rggcp'></small><noframes id='rggcp'>