Memory problem: 'error=12, Not enough space'


You see this stack trace in build logs:

Caused by: error=12, Not enough space
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(
    at java.lang.ProcessImpl.start(
    at java.lang.ProcessBuilder.start(


  • Jenkins, CloudBees Jenkins Enterprise, CloudBees Jenkins Operations Center
  • Solaris


You are running out of system memory on agent node when Java calls fork(). This situation can be triggered when agent (agent.jar JVM process) uses too much memory.

If command line launch argument of agent doesn’t contain any memory limiting parameters, you should add :

-Xms128m -Xmx512m

You can take a look at this article for background on the problem:

Have more questions?


Please sign in to leave a comment.