memory leak skinfactories hold on to skin which holds on to stylesheetnodes
---------------------------------------------------------------------------

                 Key: TRINIDAD-2087
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2087
             Project: MyFaces Trinidad
          Issue Type: Improvement
          Components: Skinning
            Reporter: Jeanne Waldman


related to TRINIDAD-2026.

SkinFactory#_FACTORIES is holding on to StyleSheetNodes. We register all
skins with the SkinFactory. Once a skin has been requested by the user, we
parse the stylesheet and store the stylesheetnodes with the skin.

To see in the memory profiler tool, first set the LRUCache for
SkinStyleProvider to 1. This will only keep
around one SkinStyleProvider at a time. Run the rich client app (or
trinidad's panelPageSkinDemo). Change the skin to about 6 different skins.
Stop the memory profiler. You will see that even though we limit the
SkinStyleProvider to 1, we still see StyleSheetNodes growing.
See attached image showing the profiler results.

Think about using SoftReferences to the Skin

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to