Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1443

StreamingAddResource introduces memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.7
    • 1.1.10
    • None
    • None

    Description

      org.apache.myfaces.component.html.util.StreamingAddResource creates a Thread named CleanupThread. This causes a memory during development when an application is uninstalled/installed during development.
      The thread is unmanaged to the server and will hold references to the application classloader, even if the application is uninstalled from the server.

      The same problem will occur in production environments that use hot deploy features.

      I don't know if this does also affect 1.2.x stream.

      Suggestion: Please include a shutdown hook that can be used to stop the thread during application shutdown (via ContextLoaderListener or similar).

      Attachments

        1. TOMAHAWK-1443-1.patch
          22 kB
          Leonardo Uribe

        Activity

          People

            lu4242 Leonardo Uribe
            pschoepf Philipp Schoepf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: