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)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.0.ER7
    • None
    • EE
    • None
    • 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

      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

              smarlow1@redhat.com Scott Marlow
              smarlow1@redhat.com Scott Marlow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: