xsbt 0.13のビルド途中でコアダンプ発生
Ubuntu 12.04 32bitでxsbtの0.13ブランチをチェックアウトしてbuild-allでビルドすると、ビルド途中でコアダンプが発生して終了してしまう。
xsbtのwikiページある通りのパラメータで起動した
実行結果
[info] Generating Scala API documentation for main sources to /home/takamatu/apps/xsbt/target/api... # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xb6d42c13, pid=28178, tid=984611648 # # JRE version: 6.0_24-b24 # Java VM: OpenJDK Server VM (20.0-b12 mixed mode linux-x86 ) # Derivative: IcedTea6 1.11.4 # Distribution: Ubuntu 12.04 LTS, package 6b24-1.11.4-1ubuntu0.12.04.1 # Problematic frame: # V [libjvm.so+0x4cac13] MarkSweep::follow_stack()+0x133 # # An error report file with more information is saved as: # /home/takamatu/apps/xsbt/hs_err_pid28178.log # # If you would like to submit a bug report, please include # instructions how to reproduce the bug and visit: # https://bugs.launchpad.net/ubuntu/+source/openjdk-6/ # /home/takamatu/apps/bin/sbt: 2 行: 28178 中止 (コアダンプ) java -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar `dirname $0`/sbt-launch.jar "$@"
オプション「-Xmx1792M」を「-Xmx1280M」に変更
変更した起動スクリプト
SBT_OPTS="-Xms512M -Xmx1280M -Xss1M -XX:MaxPermSize=200M -XX:ReservedCodeCacheSize=60M" SBT_OPTS="$SBT_OPTS -XX:+CMSClassUnloadingEnabled -XX:-UseGCOverheadLimit" java $JAVA_OPTS $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"
実行結果
[info] published ivy to /home/takamatu/.ivy2/local/org.scala-sbt/scripted-plugin/0.13.0-SNAPSHOT/ivys/ivy.xml [warn] /home/takamatu/apps/xsbt/compile/inc/CompileSetup.scala:6: imported `Output' is permanently hidden by definition of object Output in package sbt [warn] import xsbti.compile.{ CompileOrder, Output, SingleOutput, MultipleOutput } [warn] ^ [warn] there were 153 deprecation warnings; re-run with -deprecation for details [warn] there were 27 unchecked warnings; re-run with -unchecked for details model contains 1092 documentable templates [warn] three warnings found [info] Scala API documentation generation successful. [success] Total time: 5278 s, completed 2012/10/04 9:18:43 >
異常終了せずに終了したが、ビルド完了まで1時間半近くかかっている。
JVMのヒープメモリ使用状況(jconsole使用)
JVMのメモリプール(Code Cache)
JVMのメモリプール(PS Perm Gen)