Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7008 Upgrade AOP to 2.1.6.GA_CP03
  3. JBPAPP-6909

BaseClassLoader leaking memory after undeploy when using JBoss bean

XMLWordPrintable

    • Not Required
    • NEW

      If I redeploy an ear which has a JBoss bean in it after a few deployments JBoss runs out of heap.
      It would appear the BaseClassloader still refers to the classes that are not longer required.

      Heap dump analysis shows -

      Problem Suspect 1

      The classloader/component "org.jboss.classloader.spi.base.BaseClassLoader @ 0xd40c9758" occupies 333,122,512 (43.46%) bytes. The memory is accumulated in one instance of "java.util.concurrent.ConcurrentHashMap$Segment[]" loaded by "<system class loader>".

      Keywords
      java.util.concurrent.ConcurrentHashMap$Segment[]
      org.jboss.classloader.spi.base.BaseClassLoader @ 0xd40c9758

      Problem Suspect 2

      One instance of "org.jboss.redeploy.calc.MyCache" loaded by "org.jboss.classloader.spi.base.BaseClassLoader @ 0xe7bf8f28" occupies 259,815,320 (33.90%) bytes. The memory is accumulated in one instance of "java.util.concurrent.ConcurrentHashMap$Segment[]" loaded by "<system class loader>".

      Keywords
      java.util.concurrent.ConcurrentHashMap$Segment[]
      org.jboss.redeploy.calc.MyCache
      org.jboss.classloader.spi.base.BaseClassLoader @ 0xe7bf8f28

        1. jboss-beans.xml
          0.3 kB
          Tom Fonteyne
        2. redeploy.ear
          3 kB
          ShaunA
        3. Single.java
          0.1 kB
          Tom Fonteyne
        4. StartSingleton.java
          0.2 kB
          Tom Fonteyne

              kkhan1@redhat.com Kabir Khan
              rhn-support-sappleton Shaun Appleton
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: