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

Issue

You see this stack trace in build logs:

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

Environment

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

Resolution

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

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

-Xms128m -Xmx512m -XX:MaxPermSize=128m

You can take a look at this article for background on the problem: http://bryanmarty.com/2012/01/14/forking-jvm/.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.