[JIRA] (JENKINS-57165) Jenkins job fails on Agent with error java.lang.OutOfMemoryError: Java heap space

6 views
Skip to first unread message

porwal.nikita@gmail.com (JIRA)

unread,
Apr 24, 2019, 1:43:02 AM4/24/19
to jenkinsc...@googlegroups.com
Nikita Porwal created an issue
 
Jenkins / Task JENKINS-57165
Jenkins job fails on Agent with error java.lang.OutOfMemoryError: Java heap space
Issue Type: Task Task
Assignee: Giuseppe Landolfi
Components: slave-setup-plugin
Created: 2019-04-24 05:42
Environment: Windows 7/10
Priority: Major Major
Reporter: Nikita Porwal

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

porwal.nikita@gmail.com (JIRA)

unread,
Apr 24, 2019, 9:14:03 AM4/24/19
to jenkinsc...@googlegroups.com
Nikita Porwal updated an issue
Change By: Nikita Porwal
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

porwal.nikita@gmail.com (JIRA)

unread,
Apr 25, 2019, 1:13:02 AM4/25/19
to jenkinsc...@googlegroups.com

porwal.nikita@gmail.com (JIRA)

unread,
Apr 26, 2019, 1:31:02 AM4/26/19
to jenkinsc...@googlegroups.com

joshua.alday@eso.com (JIRA)

unread,
May 21, 2019, 4:31:02 PM5/21/19
to jenkinsc...@googlegroups.com
Joshua Alday commented on Task JENKINS-57165
 
Re: Jenkins job fails on Agent with error java.lang.OutOfMemoryError: Java heap space

I get frequent OOM issues with Jenkins to kubernete pods. I use SSH connection, but of course it still starts a slave.jar. Despite having proper JVM properties set, I run into varying OOM issues, including the one mentioned above.

Reply all
Reply to author
Forward
0 new messages