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

FileCleaner thread never ends and cause memory leak in AS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None
    • None
    • JBOssPortal with commons.fileupload

    Description

      FileCleaner opens a thread and no solution is given to the user to end it. So when an application is undeployed
      in an Application Server, a thread is still alive. The WebApp can't be undeployed and this results in a classloader
      leak that will cause an OutOfMemoryError.

      I think the API should be extended so that a user can end the thread. A better way would be to provide a class that
      cleans everything for commons IO.

      Attachments

        1. IO-99.patch
          5 kB
          Jochen Wiedmann

        Issue Links

          Activity

            People

              scolebourne Stephen Colebourne
              mvera Vera Mickaƫl
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: