1 2 Previous Next 20 Replies Latest reply on Oct 6, 2013 5:32 PM by Tomaz Cerar

    Memory leak with Arquillian and EAP6.1.0.Final

    Guillaume Grossetie Newbie

      Hi,

       

      I think I've found a memory leak.

       

      Versions:

      JBoss : EAP 6.1.0.GA

      arquillian : 1.0.3.Final

      arquillian-jacoco : 1.0.0.Alpha5

      jboss-as-arquillian-container-managed : 7.2.0.Final

       

      $ mvn --version
      Apache Maven 3.0.4
      Maven home: /usr/share/maven
      Java version: 1.7.0_10, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/jdk1.7.0_10/jre
      Default locale: fr_FR, platform encoding: UTF-8
      OS name: "linux", version: "3.2.0-51-generic", arch: "amd64", family: "unix"
      
      

       

      Command line:

      /usr/lib/jvm/java-7-latest/bin/java, -Xms1G, -Xmx2G, -XX:MaxPermSize=256m, -Xdebug, -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n, -Djboss.server.base.dir=../wafservice/test-integration, -XX:+HeapDumpOnOutOfMemoryError, -ea, -Djboss.home.dir=/var/opt/jbossas7, -Dorg.jboss.boot.log.file=/var/opt/jbossas7/standalone/log/boot.log, -Dlogging.configuration=file:/var/opt/jbossas7/standalone/configuration/logging.properties, -Djboss.modules.dir=/home/ggrossetie/opt/jboss-eap-6.1/modules, -Djboss.bundles.dir=/home/ggrossetie/opt/jboss-eap-6.1/bundles, -jar, /var/opt/jbossas7/jboss-modules.jar, -mp, /var/opt/jbossas7/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml
      
      


      HeapDump:

       

      https://docs.google.com/file/d/0B0iXZ7nwKNY2Ni1VdVN2cC1KeWc/edit?usp=sharing

       

      Stats:

      Testing archive is about 6Mo.

      All testing dependencies are on a "JBoss" module (overall size 35Mo).

      Test suite is composed by 10 classes (one deploy by test class)

       

      I tried to enable/disable my testing archive directly from the JBoss console but I didn't reproduce the OutOfMemoryException. Eclipse Memory Analyzer pointed out the org.jboss.arquillian.testenricher.cdi.contrainer.CDIExtension class :

       

      The class "org.jboss.arquillian.testenricher.cdi.container.CDIExtension", loaded by"org.jboss.modules.ModuleClassLoader @ 0x789193ce0", occupies 128 002 152 (20,21%) bytes. The memory is accumulated in one instance of"java.util.HashMap$Entry[]" loaded by "<system class loader>".
      
      Keywords
      org.jboss.modules.ModuleClassLoader @ 0x789193ce0
      java.util.HashMap$Entry[]
      org.jboss.arquillian.testenricher.cdi.container.CDIExtension
      
      

       

      memory_leak.png

       

      If you need some more information, fell free to ask me.

       

      Thanks for your help,

      Guillaume.

        1 2 Previous Next