[ 
https://issues.apache.org/jira/browse/MYFACES-2942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921373#action_12921373
 ] 

Martin Kočí commented on MYFACES-2942:
--------------------------------------

after 10 deploy-undeploy of same app at tomcat 6 (after each redeploy I did one 
request to a view)

1 instance of RuntimeConfig (keeps live instances of NavigationCase and 
NavigationRule and many others)

362 instances of org.apache.myfaces.view.facelets.tag.MetadataTargetImpl - for 
those Memory Analyzer (http://www.eclipse.org/mat/) shows that immediate 
dominator is org.apache.catalina.loader.WebappClassLoader.

RuntimeConfig is not GCed but next deploy replaces instance -> only one 
instance remain. MetadataTargetImpl is another story - number of instances 
grows after every redeploy. Each 39 instances  of MetadataTargetImpl are loaded 
with different WebappClassLoader instance (17 live instances of 
WebappClassLoader in time of snapshot).

It looks like a cumulative issue: something (probably RuntimeConfig) prevents 
WebappClassLoader instance to be GCed. Next deploy create new WebappClassLoader 
which loads classes again and consumes perm gen space.









> Memory Leak in MyFaces 2.0.1 probably as well in 2.0.2
> ------------------------------------------------------
>
>                 Key: MYFACES-2942
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2942
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.1, 2.0.2
>         Environment: JBOSS AS
>            Reporter: Werner Punz
>            Priority: Critical
>
> Stan Silvert from JBoss reports:
> I'm pretty sure 2.0.1 has a memory leak on undeploy.  Mojarra had an undeploy 
> leak and it took a long time to track it down.  The same test I was using on 
> Mojarra also failed on MyFaces but I haven't had time to track down the leak 
> in MyFaces.
> Maybe this is fixed in 2.0.2?  If not maybe someone can go ahead and take a 
> look?  The mem leak keeps MyFaces from passing TCK on JBoss AS.  To test, all 
> you need to do is create a small exploaded JSF app.  Then have a script that 
> touches web.xml every 10 seconds.  That will cause the app to redeploy.  You 
> will get a PermGen error in about an hour. 

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

Reply via email to