• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Not enough space  RSS feed

 
Chethan Sharma
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Runtime rtime = Runtime.getRuntime();
Process child = rtime.exec("/bin/bash");
BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(child.getOutputStream()));
outCommand.write("/users/scripts/softlinks.sh "+file_location+" "+file_location1+" "+a_mib_names);
outCommand.flush();



I added the above lines to the exising code now i am getting the following error.




java.io.IOException: Not enough space
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at java.lang.Runtime.exec(Runtime.java:364)
at java.lang.Runtime.exec(Runtime.java:326)

Pls let me know. Required Immediately.
Thanks
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by RamaShankar Miryala:

Pls let me know. Required Immediately.


As our FAQ, How To Ask Questions On JavaRanch states, Ease Up. We're all volunteers answering questions in our free time, and everyone wants their question answered immediately.
As for your question, a quick Google search turned up this page which indicates that your problem is caused by too many open files or not enough file descriptors. Is the code calling close() on every file it opens?
 
Guy Belpa
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




and....
 
Rob Spoor
Sheriff
Posts: 21131
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/DontWakeTheZombies
This thread was over 3 years old, and Chethan Sharma hasn't been active for almost a full year.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!