Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2683

Inefficient use of JAXBContext leads to excessive classloading

XMLWordPrintable

    • Icon: Quality Risk Quality Risk
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • jbossws-native-3.0.5, jbossws-metro-3.0.5
    • 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

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

              Unassigned Unassigned
              rkettelerij Richard Kettelerij (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: