BUILD SUCCESSFUL Total time: 23 minutes 24 seconds FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method) at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114) at org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109) at hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:427) at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:259) at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:453) at hudson.Launcher$LocalLauncher.kill(Launcher.java:825) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:556) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)
在运行jekins或ant构建测试中出现java.lang.OutOfMemoryError: Java heap space内存溢出现象 我的解决方法是eclips-Preferences->Java->Installed JREs->jdk->Edit,在VM arguments中修改参数大小Xms512m -Xmx1024m