[ http://issues.apache.org/jira/browse/IO-93?page=all ]
Stephen Colebourne resolved IO-93. ---------------------------------- Resolution: Fixed Was more complicated than I expeted. I have coded a solution, however it really seems that Process in the JDK is basically rubbish. Anyway, I've improved what we have, rather than go to a full blown commons-exec solution. I can't test or reproduce you're problem on my Windows box. Since you have a test case, can you please try the latest code and reply back (by closing or reopening the call) as to whether the problem is fixed. Thanks. > FileSystemUtils needs to call Process.destroy() on exec'd processes > ------------------------------------------------------------------- > > Key: IO-93 > URL: http://issues.apache.org/jira/browse/IO-93 > Project: Commons IO > Issue Type: Bug > Components: Utilities > Affects Versions: 1.2 > Environment: Java 1.5_06 VM, Red Hat Enterprise Linux 4.0 OS > Reporter: Jon Neely > Fix For: 1.3 > > > Calling the FileSystemUtils.getFreeSpace() method multiple times (~3000) will > generate an IOException with the following text: "Too many open files". > Documentation from Sun says this problem is due to not destroying the > java.lang.Process object returned from the System.exec() call. > Some sample code I wrote confirms that calling destroy prevents this error > from occurring. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]