Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-93

FileSystemUtils needs to call Process.destroy() on exec'd processes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • Utilities
    • None
    • Java 1.5_06 VM, Red Hat Enterprise Linux 4.0 OS

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jneely Jon Neely
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: