Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6530

BaseClassLoader leaking memory after undeploy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • EAP_EWP 5.3.0.ER1
    • EAP_EWP 5.1.2
    • None
    • None
    • JBoss Enterprise Application Platform 5.1.0
      Sun JDK / OpenJDK

    • Hide

      1) Start JBoss 5.1 EAP with the admin-console web application deployed.
      2) Make a request to /admin-console/ URL.
      3) Undeploy the web application, by removing admin-console from the filesystem (or moving it outside the deploy folder, or renaming it to .bak, etc.).

      Subsequent iterations of these steps should result in more of these leaking objects being left over.

      Show
      1) Start JBoss 5.1 EAP with the admin-console web application deployed. 2) Make a request to /admin-console/ URL. 3) Undeploy the web application, by removing admin-console from the filesystem (or moving it outside the deploy folder, or renaming it to .bak, etc.). Subsequent iterations of these steps should result in more of these leaking objects being left over.
    • A memory leak was encountered in previous versions of JBoss EAP when an application that uses EL inside JSP (such as the admin-console) was unemployed. This leak has been corrected by adding a call to purgeBeanClasses in an undeploy method.
    • Documented as Resolved Issue
    • NEW

      This occurs when undeploying an application, which uses EL inside JSP. The admin-console application can be used as an example. After undeploying the application, taking a heap dump, and analyzing in Eclipse Memory Analyzer, the classloader for this application (org.jboss.classloader.spi.base.BaseClassLoader) is left over with its root being held by com.sun.naming.internal.ResourceManager in a WeakHashMap named propertiesCache. Would it be possible for this classloader to be cleaned up when the application is undeployed?

        1. BeanELResolver.java
          12 kB
          Bartosz Baranowski
        2. JBPAPP-6530.patch
          3 kB
          Bartosz Baranowski

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-support-aogburn Aaron Ogburn
              Russell Dickenson Russell Dickenson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: