Hi,

Using Jenkins 1.547, I get a crash with an out of memory failure on a 
slave.  This occurs mostly when I run a larger number of jobs 
simultaneously.  It starts the job by fetching from git and fails giving 
the error below.  I don't understand this, as I have 24 GB Ram on my VM 
slave, but at the exact time it failed, only 16 GB out of that amount were 
used.

Thanks in advance,

Shahaf

Building remotely on ci-app01 <http://ci.seekingalpha.com/computer/ci-app01> 
in workspace /home/deploy/workspace/bdd tests 4

*00:57:32* ERROR: Workspace has a .git repository, but it appears to be 
corrupt.

*00:57:32* hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 
Error performing command: git rev-parse --is-inside-work-tree

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1283)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1253)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1249)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1065)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1075)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo(CliGitAPIImpl.java:171)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo&entity=method>

*00:57:32* at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:186) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitAPI.hasGitRepo&entity=method>

*00:57:32* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

*00:57:32* at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

*00:57:32* at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

*00:57:32* at java.lang.reflect.Method.invoke(Method.java:622)

*00:57:32* at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)

*00:57:32* at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)

*00:57:32* at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)

*00:57:32* at hudson.remoting.UserRequest.perform(UserRequest.java:118)

*00:57:32* at hudson.remoting.UserRequest.perform(UserRequest.java:48)

*00:57:32* at hudson.remoting.Request$2.run(Request.java:328)

*00:57:32* at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)

*00:57:32* at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

*00:57:32* at java.util.concurrent.FutureTask.run(FutureTask.java:166)

*00:57:32* at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

*00:57:32* at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

*00:57:32* at java.lang.Thread.run(Thread.java:701)

*00:57:32* Caused by: java.io.IOException: Cannot run program "git" (in 
directory "/home/deploy/workspace/bdd tests 4"): java.io.IOException: 
error=12, Cannot allocate memory

*00:57:32* at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)

*00:57:32* at hudson.Proc$LocalProc.<init>(Proc.java:244)

*00:57:32* at hudson.Proc$LocalProc.<init>(Proc.java:216)

*00:57:32* at hudson.Launcher$LocalLauncher.launch(Launcher.java:773)

*00:57:32* at hudson.Launcher$ProcStarter.start(Launcher.java:353)

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1272)

*00:57:32* ... 22 more

*00:57:32* Caused by: java.io.IOException: java.io.IOException: error=12, 
Cannot allocate memory

*00:57:32* at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)

*00:57:32* at java.lang.ProcessImpl.start(ProcessImpl.java:81)

*00:57:32* at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)

*00:57:32* ... 27 more

*00:57:32* Cloning the remote Git repository

*00:57:32* Cloning repository sagit:sapi

*00:57:32* ERROR: Error cloning remote repo 'origin'

*00:57:32* hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 
Could not init /home/deploy/workspace/bdd tests 4

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute(CliGitAPIImpl.java:473) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:376) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call&entity=method>

*00:57:32* at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>

*00:57:32* at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>

*00:57:32* at hudson.remoting.Request$2.run(Request.java:328) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method>

*00:57:32* at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method>

*00:57:32* at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRun&entity=method>

*00:57:32* at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method>

*00:57:32* at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method>

*00:57:32* at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method>

*00:57:32* at java.lang.Thread.run(Thread.java:701) 
<http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method>

*00:57:32* Caused by: hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 
Error performing command: git init /home/deploy/workspace/bdd tests 4

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1283)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1253)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1249)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1065)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute(CliGitAPIImpl.java:471) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute&entity=method>

*00:57:32* ... 12 more

*00:57:32* Caused by: java.io.IOException 
<http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Cannot 
run program "git" (in directory "/home/deploy/workspace/bdd tests 4"): 
java.io.IOException: error=12, Cannot allocate memory

*00:57:32* at java.lang.ProcessBuilder.start(ProcessBuilder.java:488) 
<http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.start&entity=method>

*00:57:32* at hudson.Proc$LocalProc.<init>(Proc.java:244) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3E&entity=method>

*00:57:32* at hudson.Proc$LocalProc.<init>(Proc.java:216) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3E&entity=method>

*00:57:32* at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$LocalLauncher.launch&entity=method>

*00:57:32* at hudson.Launcher$ProcStarter.start(Launcher.java:353) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$ProcStarter.start&entity=method>

*00:57:32* at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1272)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>

*00:57:32* ... 16 more

*00:57:32* Caused by: java.io.IOException 
<http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: 
java.io.IOException: error=12, Cannot allocate memory

*00:57:32* at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) 
<http://stacktrace.jenkins-ci.org/search/?query=java.lang.UNIXProcess.%3Cinit%3E&entity=method>

*00:57:32* at java.lang.ProcessImpl.start(ProcessImpl.java:81) 
<http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessImpl.start&entity=method>

*00:57:32* at java.lang.ProcessBuilder.start(ProcessBuilder.java:470) 
<http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.start&entity=method>

*00:57:32* ... 21 more

*00:57:32* ERROR: null


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0d91a671-9c2d-4bc9-bf15-e3666623848a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to