Thanks for your response,
Following is the stack trace and more details abt that code that is causing problem.
java.io.IOException: java.io.IOException: Cannot allocate memory
at java.lang.UNIXProcess.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.x.y.z.invokeProcess(z.java :81)
What we do here is will invoke the runtime process to get execute a command and will read the results obtained from the Process,These results are read as follows.
BufferedReader bin = new BufferedReader(new InputStreamReader(tempProcess.getInputStream()));
String line = null;
String boutput="";
while ((line = bin.readLine()) != null) {
boutput+=line+"\n";
}
And then preparing the hash table with the boutput variable
This entire activity of executing command till preapring hash will repeatedly execute for any given random schedule say like 5 minutes
Thanks
Vidya G.