| Looks like I got that this morning, too:
09:54:57 p4 reconcile -w -f -e -d D:\ci\workspace\some_job/...
09:54:57
09:57:36 P4 Task: attempt: 1
09:57:39 P4 Task: failed: com.perforce.p4java.exception.ConnectionException: Java heap space
09:57:39 ERROR: P4 Task: failed: com.perforce.p4java.exception.ConnectionException: Java heap space
I do not see a Java stack trace. Jenkins v2.21, P4 plugin v1.4.12. Jenkins runs on CentOS 7.2.1511 (64Bit). The slave system is Windows Server 2008 R2 Standard (64Bit). I'm not sure whether the Windows Java (jre1.8.0_121) is 32Bit or 64Bit. DependencyWalker says x86, so probably this is 32Bit. Is 64Bit recommended? The failed job is a freestyle job. Acc. to /proc/.../maps the Java executable is
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111-2.6.7.2.el7_2.x86_64/jre-abrt/bin/java
So this is the following package (see rpm -qif ...):
Name : java-1.7.0-openjdk-headless
Epoch : 1
Version : 1.7.0.111
Release : 2.6.7.2.el7_2
Architecture: x86_64
Install Date: Tue 15 Nov 2016 03:01:46 PM CET
Group : Development/Languages
Size : 95555015
License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C
Signature : RSA/SHA256, Wed 27 Jul 2016 01:39:38 PM CEST, Key ID 24c6a8a7f4a80eb5
Source RPM : java-1.7.0-openjdk-1.7.0.111-2.6.7.2.el7_2.src.rpm
Build Date : Wed 27 Jul 2016 01:07:19 PM CEST
Build Host : worker1.bsys.centos.org
Relocations : (not relocatable)
Packager : CentOS BuildSystem <http://bugs.centos.org>
Vendor : CentOS
URL : http://openjdk.java.net/
Summary : The OpenJDK runtime environment without audio and video support
Description :
The OpenJDK runtime environment without audio and video
What is not clear to me: is this an issue on the server or on the slave agent? Ahh ... forget last question: acc. to slave agent error log:
Feb 06, 2017 9:57:37 AM org.jenkinsci.plugins.p4.tasks.AbstractTask tryTask
SEVERE: P4 Task: attempt: 1
com.perforce.p4java.exception.ConnectionException: Java heap space
at com.perforce.p4java.impl.mapbased.rpc.packet.RpcPacketDispatcher.dispatch(RpcPacketDispatcher.java:225)
at com.perforce.p4java.impl.mapbased.rpc.OneShotServerImpl.execMapCmdList(OneShotServerImpl.java:350)
at com.perforce.p4java.impl.mapbased.rpc.OneShotServerImpl.execStreamingMapCommand(OneShotServerImpl.java:415)
at org.jenkinsci.plugins.p4.client.ClientHelper.tidyClean(ClientHelper.java:486)
at org.jenkinsci.plugins.p4.client.ClientHelper.tidyAutoCleanImpl(ClientHelper.java:404)
at org.jenkinsci.plugins.p4.client.ClientHelper.tidyWorkspace(ClientHelper.java:352)
at org.jenkinsci.plugins.p4.tasks.CheckoutTask.task(CheckoutTask.java:120)
at org.jenkinsci.plugins.p4.tasks.AbstractTask.tryTask(AbstractTask.java:215)
at org.jenkinsci.plugins.p4.tasks.CheckoutTask.invoke(CheckoutTask.java:114)
at org.jenkinsci.plugins.p4.tasks.CheckoutTask.invoke(CheckoutTask.java:26)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2772)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:62)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
Hmm ... I do not see any special memory limit settings inside jenkins-slave.xml on the slave machine. How do I see the limits which are active for the slave agent? The node System Properties view is not helpful either (or I am blind - chronical Monday morning blindness). |