myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Schoepf (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-2269) StreamingAddResource introduces memory leak
Date Wed, 08 Jul 2009 14:03:15 GMT
StreamingAddResource introduces memory leak
-------------------------------------------

                 Key: MYFACES-2269
                 URL: https://issues.apache.org/jira/browse/MYFACES-2269
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.7
            Reporter: Philipp Schoepf


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).



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message