myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeanne Waldman (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TRINIDAD-2087) memory leak skinfactories hold on to skin which holds on to stylesheetnodes
Date Wed, 13 Apr 2011 17:34:05 GMT
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

Mime
View raw message