“Forked Java VM exited abnormally” error from junit tests

前端 未结 17 1769
[愿得一人]
[愿得一人] 2020-12-08 18:22

I have a java junit test that passes when run alone on a development machine. We also have a hudson job which runs all the tests, invoked via ant, on a Mac OS X 10.4 node wi

17条回答
  •  生来不讨喜
    2020-12-08 19:06

    For me, it was an "java.lang.OutOfMemoryError" in the forked VM (junit task with fork="yes") which made this message appear in the main VM.

    The OutOfMemory was visible in the ant log (well, is visible since it's still present).

    I use ant 1.7.1, so no hope with upgrading ant.

    After putting the same VM parameters in "Run>External tools>External tools>JRE" than in Eclipse.ini (-Xms40m -Xmx512m -XX:MaxPermSize=256M) the problem is solved.

    I keep fork to "no" to be sure ant use the parameters.

提交回复
热议问题