7 Replies Latest reply on Oct 26, 2012 3:14 AM by 839715

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

      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.