| Author |
Not Enough space
|
Neelam Gautam
Greenhorn
Joined: Oct 23, 2006
Posts: 6
|
|
Hi All!
I want to do telnet from my unix server to a windows server for it i use JTA Api of java. but while i am running 'exec' function by my RunTime Object , i am getting "java.io.IOException: Not enough space" Exception. but i have enough space on my server. so whats the problem with my code..? is there any bug of IO..? my code snippet is as follows::
String exec="telnet 203.187.192.75 5501";
Runtime run=Runtime.getRuntime();
Process proc=run.exec(exec); // exception comes here ..
please help
Thnaks in advance.
|
 |
naveen jain
Greenhorn
Joined: Oct 02, 2008
Posts: 16
|
|
|
 |
Carey Evans
Ranch Hand
Joined: May 27, 2008
Posts: 225
|
|
The Java exception doesn't seem to say where the error occurred, but it’s probably ENOSPC or similar from a call to pipe(2) or fork(2). It could be caused by exceeding some process quotas, or limits like virtual memory or number of open file descriptors. The last one is possible if you’re creating lots of processes, but not closing all three streams associated with them when you’re finished.
You could try using tools like strace or truss to identify the failing system call; or alternatively, use something like Apache Commons Net to do the Telnet protocol in pure Java.
|
 |
 |
|
|
subject: Not Enough space
|
|
|