在jenkins的控制台会看到如下信息:
FATAL: Remote call on ime_checkcode failed java.io.IOException: Remote call on ime_checkcode failed at hudson.remoting.Channel.call(Channel.java:748) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:913) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:541) at hudson.model.Run.execute(Run.java:1704) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.lang.OutOfMemoryError: Java heap space
解决办法:
在slave机器上cmd输入set JAVA_OPTS=-server -Xms256m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=256M 即可解决。