Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-3738

org.jboss.el.cache.BeanPropertiesCache leaks memory in static void clear(ClassLoader classLoader)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.0.0.ER7
    • Component/s: EE
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide
      1. setup byteman with rule below
      2. start server
      3. run test against running instance with installed byteman
        wildfly/testsuite/integration/basic$ mvn test -Dtest=org.jboss.as.test.integration.jsf.beanvalidation.cdi.BeanValidationCdiIntegrationTestCase -Djboss.dist=/tmp/jboss-eap-7.0/
      4. check output
        size of properties should be 0, otherwise it's bug
      RULE jbossel mem leak
      CLASS org.jboss.el.cache.BeanPropertiesCache
      METHOD clear
      AT EXIT
      BIND props = org.jboss.el.cache.BeanPropertiesCache.properties
      IF true
      DO
      System.out.println("Size of properties: " +  props.map.entrySet().size());
      ENDRULE
      
      Show
      setup byteman with rule below start server run test against running instance with installed byteman wildfly/testsuite/integration/basic$ mvn test -Dtest=org.jboss.as.test.integration.jsf.beanvalidation.cdi.BeanValidationCdiIntegrationTestCase -Djboss.dist=/tmp/jboss-eap-7.0/ check output size of properties should be 0, otherwise it's bug RULE jbossel mem leak CLASS org.jboss.el.cache.BeanPropertiesCache METHOD clear AT EXIT BIND props = org.jboss.el.cache.BeanPropertiesCache.properties IF true DO System .out.println( "Size of properties: " + props.map.entrySet().size()); ENDRULE

      Description

      Originally reported via https://github.com/jboss/jboss-el-api_spec/issues/19 (which suggests a fix).

      To recreate, run the WildFly org.jboss.as.test.integration.jsf.beanvalidation.cdi.BeanValidationCdiIntegrationTestCase test and set a break point in org.jboss.el.cache.BeanPropertiesCache.clear(ClassLoader). Originally reported via https://github.com/jboss/jboss-el-api_spec/issues/19

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  smarlow Scott Marlow
                  Reporter:
                  smarlow Scott Marlow
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: