dmitry175
asked on
java.io.IOException: Not enough space
Hi,
I use JDK 1.1 in Sol 2.5
My program starts sevral sub processes (about 7, not a lot ) at he same time. Some of these processes are Java processes some native.
Does anybody can tell me, what might cause this exception.
What "space" means in this context
java.io.IOException: Not enough space
at java.lang.UNIXProcess.<ini t>(UNIXPro cess.java)
at java.lang.Runtime.exec(Run time.java)
at java.lang.Runtime.exec(Run time.java)
thanks
Dmitry
I use JDK 1.1 in Sol 2.5
My program starts sevral sub processes (about 7, not a lot ) at he same time. Some of these processes are Java processes some native.
Does anybody can tell me, what might cause this exception.
What "space" means in this context
java.io.IOException: Not enough space
at java.lang.UNIXProcess.<ini
at java.lang.Runtime.exec(Run
at java.lang.Runtime.exec(Run
thanks
Dmitry
ASKER
Katya thanks for you responce.
I checked both disk space and memory, before I send this Q out, I'm sure I have enought of both.
My second assumtion was that I'm running out of file descriptors, since by default I have only 64 and after my program starts running it take 45 right away (mostly internal java libs). And each sub process takes 3 file descriptors (stdin, stdout, stderr). I increased it to 128 but still have same problem.
It's some kind of IO proble but I cannot figure out what space meens in this context, Java tells you if ran out of memmory or disk.
Thanks , Dmitry
I checked both disk space and memory, before I send this Q out, I'm sure I have enought of both.
My second assumtion was that I'm running out of file descriptors, since by default I have only 64 and after my program starts running it take 45 right away (mostly internal java libs). And each sub process takes 3 file descriptors (stdin, stdout, stderr). I increased it to 128 but still have same problem.
It's some kind of IO proble but I cannot figure out what space meens in this context, Java tells you if ran out of memmory or disk.
Thanks , Dmitry
I suggest running the whole thing under truss -f. If you
post the truss output, I can tell you what is wrong.
-Tony
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hope this helps