myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruben Martin Pozo (Commented) (JIRA)" <>
Subject [jira] [Commented] (MYFACES-3510) Application components classloader memory leak
Date Wed, 21 Mar 2012 22:47:18 GMT


Ruben Martin Pozo commented on MYFACES-3510:

What do you mean when you say that the classloader is weakly reachable? JProfiler is only
showing strong references. If you mean its weakly reachable because of the WeakHashMap that's
not correct since WeakHashMap only uses weakreference for keys not for values as this is the

I'm getting OOM because we're running out of permGem memory due to the application class loader
> Application components classloader memory leak
> ----------------------------------------------
>                 Key: MYFACES-3510
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.1.6
>         Environment: WIndows Glassfish Embedded
>            Reporter: Ruben Martin Pozo
>         Attachments: 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:!default.jspa
For more information on JIRA, see:


View raw message