This discussion is archived
7 Replies Latest reply: Oct 25, 2012 8:14 PM by 839715 RSS

IOException: error=12, Not enough space when forking external process

839715 Newbie
Currently Being Moderated
Hi, all

I met the issue like, Cannot run program "/usr/local/bin/sudo": error=12, Not enough space
     at java.lang.ProcessBuilder.start(
     at java.lang.Runtime.exec(
     at java.lang.Runtime.exec(
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(

when I tried to call an external script by Runtime.exec. I checked the physical memory and swap, both of them were more than 2GB around the time when the exception was thrown. The same exception was thrown by other external process forking thread...

Would anyone please shed me some lights on this issue? I didn't see any OutOfMemoryError either from my application.

Thanks and Regards.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points