[ 
https://jira.jboss.org/jira/browse/RF-7911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12492077#action_12492077
 ] 

Hans Cappelle commented on RF-7911:
-----------------------------------

See last remark at this ticket: https://issues.apache.org/jira/browse/XBEAN-95

java.beans.PropertyEditorManager keeps a strong reference to the registered 
classes. The xbean PropertyEditor classes are loaded by the context class 
loader, (which is the webapp class loader if running in Tomcat etc.). The class 
java.beans.PropertyEditorManager is loaded by the bootstrap class loader. This 
means that there is a strong reference from the bootstrap class loader to the 
webapp class loader, which means that the webapp class loader cannot be 
unloaded, which means that the webapp is not garbage collected when it is 
undeployed.

> OutOfMemory when redeploying - ClientSelection not unregistered from 
> PropertyEditorManager
> ------------------------------------------------------------------------------------------
>
>                 Key: RF-7911
>                 URL: https://jira.jboss.org/jira/browse/RF-7911
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-ScrollableDataTable
>    Affects Versions: 3.3.1
>         Environment: richfaces.3.3.1.GA + Tomcat 6
>            Reporter: Geert Coelmont
>            Assignee: Konstantin Mishin
>             Fix For: Future
>
>         Attachments: screen_shot1.jpg, screen_shot1.jpg, simple-jsf.zip
>
>
> When redeploying, webapp classloader isn't garbage collected, causing a 
> "java.lang.OutOfMemoryError: PermGen space" after a few times.
> I used a profiler ("yourkit") to see where the issue was and found these 3 
> classes:
> - org.richfaces.model.selection.ClientSelection
> - 
> com.sun.faces.application.ConverterPropertyEditorFactory$DisposableClassLoader
> - com.sun.faces.application.ConverterPropertyEditorBase
> See attached screen shot for more details.
> I don't know where the 2 com.sun.faces classes come from either, but at least 
> org.richfaces.model.selection.ClientSelection shouldn't be there.
> I saw issue RF-1284 which appears to be very similar, only now this happens 
> in a newer version. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to