私は、ローカルで実行するたびに通過するJunitテストのスイートを持っています。私はスイートを実行するための仕事をセットアップしました.HudsonはANTを使用してtestsを呼び出します。このスイートはかなりの時間、hudsonマシンを通過していました。しかし、最後の3日間から、あるテストが何度か失敗します(ランダムに)。そしてコードに変更されていません。エラーは次のとおりです。無作為にテストケースが失敗する - フォークされたJVMが異常終了します。
エラーメッセージ
Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
STACKTRACE
junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
私はGoogleで適切な答えを見つけることができませんでした。私はチェックしたhere
しかし、それは役に立たないようです。
ハドソンマシンの詳細: のWindows 2003 Serverの のJava 1.6.0.29
可能重複http://stackoverflow.com/questions/1846329/forked-java-vm-exited-abnormally-error-from-junit-テストすることができますが、ここで見たいかもしれません:http://softwaresalariman.blogspot.com/2008/09/netbeans-junit-java-vm-exited.html – dmeister
ブログの著者は新しいJVMをフォークしないことに言及していますが私の場合は不可能です。それは重複して見えるかもしれませんが、解決策を持っているその質問:) –
hudson building project.MyがJavaのバグを打つと、ramの使用状況を確認してください。 – ayengin