Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.7
-
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).