ねこ元帥の中の人@リウマチ

日々の覚書など。ブログ名はオンラインゲームのアカウント名をいつも「ねこ元帥」にしているから。そして、2013年11月リウマチと診断されたとです。(2012年11月から時々手足に原因不明の痛みが発生、2013年9月以降は足の痛みが常態化、2013年12月30日からMTX服用開始、4月過ぎるころにはわずかの痛みが残る程度まで回復して現在に至る。)

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 "$@"

javaの起動オプションをWindows 7 64bitと同じにしてやってみた

結果変わらず。
マシンの物理メモリが2GBしかないので、ヒープメモリ最大値の設定を逆に小さくして実行してみる。

オプション「-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)


VMの概要