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,

java.io.IOException: Cannot run program "/usr/local/bin/sudo": error=12, Not enough space
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
     at java.lang.Runtime.exec(Runtime.java:593)
     at java.lang.Runtime.exec(Runtime.java:466)
     ...
Caused by: java.io.IOException: error=12, Not enough space
     at java.lang.UNIXProcess.forkAndExec(Native Method)
     at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
     at java.lang.ProcessImpl.start(ProcessImpl.java:65)
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)

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.

Legend

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