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

Ruben Martin Pozo edited comment on MYFACES-3510 at 3/22/12 7:24 PM:
---------------------------------------------------------------------

And how do you explain that if I remove the patch the server doesn't freeze 
when deploying? To test the patch I have to redeploy the app several times so I 
get to the point when there is no more permGen memory and the soft reference is 
garbage collected. Then and only then the server freezes and not in any of the 
other times when I redeployed but there was enough memory

So I really think something strange is happening that is, somehow, triggered by 
this patch.

I'll try patch-2 to see if the same thing happens
                
      was (Author: rmarpozo):
    And how do you explain that if I remove the patch the server doesn't freeze 
when deploying? To test the patch I have to redeploy the app several times so I 
get to the point when there is no more permGen memory and the soft reference is 
garbage collected. Then and only then the server freezes and not in any of the 
other times when I redeployed but there was enough memory

So I really think something strange is happening that is, somehow, trigger by 
this patch.

I'll try patch-2 to see if the same thing happens
                  
> Application components classloader memory leak
> ----------------------------------------------
>
>                 Key: MYFACES-3510
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3510
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.1.6
>         Environment: WIndows Glassfish Embedded
>            Reporter: Ruben Martin Pozo
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.13, 2.1.7
>
>         Attachments: MYFACES-3510-1.patch, MYFACES-3510-2.patch, 
> screenshot-1.jpg
>
>
> We've seen an application classloader memory leak due to the new class 
> javax.faces.component._PropertyDescriptorHolder class introduced in version 
> 2.1.6
> This class holds a reference to a Method of a component loaded by the 
> application classloader. The memory leak shows up when the 
> _PropertyDescriptorHolder is stored in the _ComponentAttributesMap class that 
> is loaded by the system class loader.
> You should use a WeakReference instead of storing the direct reference to the 
> Method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to