4.5.1からSonar 4.5.6にアップグレードして以来、多くのテストを行っているビルドでは一貫してメモリエラーが発生しています。ビルドは古い4.5.1サーバーに対して正常に実行されますが、4.5.6サーバーに対しては一貫して失敗します。Sonar 4.5.6メモリ設定を無視してメモリを解放する
sonar:sonar
の目標を使用して、Maven 3.2.3とJDK 7でSonarを実行します。 MAVEN_OPTS
またはSONAR_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[email protected]
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しか使用されていないことを示しています。ソナーランナーはどのメモリ設定を使用していますか?前もって感謝します。
コマンドを実行してフルログを共有できますか? ( '-e'スイッチも追加します) –
これはJDK 7u71でソナーランナーを実行したために発生したようです。 JDK 8を実行したときにうまくいきました。 –