Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57165

Jenkins job fails on Agent with error java.lang.OutOfMemoryError: Java heap space

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • slave-setup-plugin
    • None
    • Windows 7/10

      IBM Java is used in this case. The Jenkins job on Agent machine fails at the end with below error:

      FATAL: Remote call on JNLP4-connect connection from <servername> failedFATAL: Remote call on JNLP4-connect connection from <servername> failedAlso:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from <servername> at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) at hudson.remoting.Channel.call(Channel.java:955) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1085) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510) at hudson.model.Run.execute(Run.java:1810) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)java.lang.OutOfMemoryError: Java heap space at java.lang.String.<init>(String.java:814) at java.lang.String.substring(String.java:2673) at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:177) at org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:146) at hudson.util.ProcessTree$WindowsOSProcess.getEnvironmentVariables2(ProcessTree.java:591) at hudson.util.ProcessTree$WindowsOSProcess.hasMatchingEnvVars2(ProcessTree.java:603) at hudson.util.ProcessTree$WindowsOSProcess.access$700(ProcessTree.java:495) at hudson.util.ProcessTree$Windows.hasMatchingEnvVars(ProcessTree.java:679) at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:654) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1097) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1088) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:277) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93) at hudson.remoting.Engine$1$$Lambda$5.00000000058574A0.run(Unknown Source) at java.lang.Thread.run(Thread.java:811)Caused: java.io.IOException: Remote call on JNLP4-connect connection from <servername> failed at hudson.remoting.Channel.call(Channel.java:961) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1085) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510) at hudson.model.Run.execute(Run.java:1810) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)[htmlpublisher] Archiving HTML reports...Finished: FAILURE

            peppe Giuseppe Landolfi
            devops_jenkins Nikita Porwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: