[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2683) Inefficient use of JAXBContext leads to excessive classloading

Richard Kettelerij (JIRA) jira-events at lists.jboss.org
Thu Jun 18 08:47:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBWS-2683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12472738#action_12472738 ] 

Richard Kettelerij commented on JBWS-2683:
------------------------------------------

Seems like JBossWS uses JAXB in the same way as this person: http://stackoverflow.com/questions/167740/possible-memory-leak-in-number-of-loaded-classes-in-java-application.

> Inefficient use of JAXBContext leads to excessive classloading  
> ----------------------------------------------------------------
>
>                 Key: JBWS-2683
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2683
>             Project: JBoss Web Services
>          Issue Type: Quality Risk
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-metro, jbossws-native
>    Affects Versions: jbossws-native-3.0.5, jbossws-metro-3.0.5
>         Environment: JBoss 5.0.1.GA (includes JbossWS 3.0.5) + Java 1.5.0 + MacOSX
> JBoss 4.2.2.GA + JBossWS 3.0.5 + Java 1.5.0 + MacOSX
>            Reporter: Richard Kettelerij
>         Attachments: gbav-loaded-classes.png, loaded-classes-jboss5.png
>
>
> Despite JBWS-1857 and JBWS-2270 I'm experiencing issues with JAXB in JBossWS 3.0.5. Every time a message passes through my endpoint I see the number of loaded classes rising in JConsole. When -XX:+TraceClassLoading is enabled the JVM shows that the wrapper classes produced by JAXB are (re)loaded with every request/response. 
> This indicates that a new instance of JAXBContext is being used as described in https://jaxb.dev.java.net/issues/show_bug.cgi?id=581 (should have been fixed in JBWS-2270).

-- 
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

        



More information about the jbossws-issues mailing list