Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6238709

Filedescriptors not closed in JNLP package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.2, 1.4.2_05
    • deploy
    • b50
    • x86, sparc
    • solaris_8, windows_2000

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Not OS related, purely bad code.

      A DESCRIPTION OF THE PROBLEM :
      There are places in the code where fileinputstreams are opened but never closed. This results in a resource leak which potentially leads to too many open files errors.
      An example would be the JarDiff class which doesn't even try to close the inputstreams in eg. the differs() and contains() methods. Other parts try to close it but not in finally clauses. An investigation using lsof on a system running an applicationserver using java webstart verifies the leak.
      The problem seems generic, I've checked various versions of Webstart.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      LSOF and force webstart to diff jars through new applications releases on webstart.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      That the system doesn't leak file descriptors!

      REPRODUCIBILITY :
      This bug can be reproduced often.

      CUSTOMER SUBMITTED WORKAROUND :
      Set a high soft and hard limit in the system. This doesn't work on all systems but on most.
      ###@###.### 2005-03-10 09:56:39 GMT

            jchusunw Jacky Chu (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: