声纳4.5.6忽略内存设置和内存不足

时间:2016-04-05 13:41:07

标签: sonarqube

由于我们已经从4.5.1升级到Sonar 4.5.6,因此我们会在有大量测试的构建中始终出现内存错误。对于旧的4.5.1服务器,构建运行良好,但对4.5.6服务器一致地失败。

我们使用sonar:sonar目标通过Maven 3.2.3和JDK 7运行Sonar。我已尝试将MAVEN_OPTSSONAR_RUNNER_OPTS设置为-Xms128m -Xmx1024m -XX:MaxPermSize=512m。我还试过-Xmx2048m。我们继续摆脱记忆问题。

04-Apr-2016 16:48:25    [ERROR] [16:48:25.872] Class not found: java.lang.annotation.Repeatable
04-Apr-2016 16:48:25    [ERROR] [16:48:25.961] Class not found: java.lang.annotation.Repeatable
04-Apr-2016 16:48:26    [ERROR] [16:48:26.541] Class not found: javax.annotation.Nullable
04-Apr-2016 16:48:26    [ERROR] [16:48:26.701] Class not found: javax.annotation.Nullable
04-Apr-2016 16:48:26    [ERROR] [16:48:26.701] Class not found: javax.annotation.CheckReturnValue
04-Apr-2016 16:48:26    [ERROR] [16:48:26.838] Class not found: javax.annotation.Nullable
04-Apr-2016 16:48:26    [ERROR] [16:48:26.960] Class not found: javax.annotation.Nullable
04-Apr-2016 16:48:27    [ERROR] [16:48:27.070] Class not found: javax.annotation.Nullable
04-Apr-2016 16:48:28    [ERROR] [16:48:28.055] Class not found: javax.annotation.Nullable
04-Apr-2016 16:48:29    [INFO] [16:48:29.671] Java Test Files AST scan done: 6423 ms
04-Apr-2016 16:48:29    [INFO] [16:48:29.671] 139/139 source files have been analyzed
04-Apr-2016 16:48:29    [INFO] [16:48:29.673] Package design analysis...
04-Apr-2016 16:48:29    [INFO] [16:48:29.947] Package design analysis done: 274 ms
04-Apr-2016 16:48:29    [INFO] [16:48:29.972] Sensor JavaSquidSensor done: 15533 ms
04-Apr-2016 16:48:29    [INFO] [16:48:29.975] Sensor QProfileSensor...
04-Apr-2016 16:48:29    [INFO] [16:48:29.976] Sensor QProfileSensor done: 1 ms
04-Apr-2016 16:48:29    [INFO] [16:48:29.976] Sensor org.sonar.plugins.findbugs.FindbugsSensor@44b9148f...
04-Apr-2016 16:48:29    [INFO] [16:48:29.980] Execute Findbugs 3.0.1...
04-Apr-2016 16:48:30    [INFO] [16:48:30.603] Found findbugs plugin: /<path to project>/target/sonar/findbugs/fb-contrib.jar
04-Apr-2016 16:48:30    [INFO] [16:48:30.603] Findbugs output report: /<path to project>/target/sonar/findbugs-result.xml
04-Apr-2016 16:49:54    [WARN] [16:49:54.965] [JOURNAL_FLUSHER] WARNING Journal flush operation took 2,471ms last 8 cycles average is 360ms
04-Apr-2016 16:50:39    The following classes needed for analysis were missing:
04-Apr-2016 16:50:40      org.jboss.logging.BasicLogger
04-Apr-2016 16:50:42    Out of memory
04-Apr-2016 16:50:45    Total memory: 3650M
04-Apr-2016 16:50:46    free memory: 3510M

我真的不确定如何继续这一点。总内存与空闲内存之间只有140MB正在使用之前,声纳转轮使用的内存设置是什么?提前谢谢。

1 个答案:

答案 0 :(得分:0)

我发现问题与在JDK 8上运行声纳跑步者有关。当我切换到使用JDK 7u75时,它没有内存耗尽。看Sonar Requirements documentation,您似乎需要<th>或更高,所以也许这就是为什么?