3 Replies Latest reply: Jul 5, 2013 5:16 AM by Igor Kolpakov RSS

    JBoss 7 / JSF 1.2 / Spring memory leak

    Igor Kolpakov Newbie

      Hello,

       

      we use JSF 1.2 / Richfaces 3.3.1 GA / Spring 3.0.5.

      After migrating from JBoss 5.1.0 to JBoss 7.0.2 and after to JBoss 7.1 we are experiencing huge memory problems - while working with JSF / Richfaces.

      Number of org.jobss.invocation.Interceptor, ChainedInterceptor are constantly growing and not collected by GC.

       

      ClassIMemory, kb% of memoryInstances% of instancesSource
      java.util.Arrays$ArrayList170 423197 271 39125
      java.lang.Object[]162 59218565 3851
      org.jboss.invocation.Interceptor[]114 581137 269 67325jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/
      org.jboss.invocation.ChainedInterceptor112 926127 227 32725jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/

       

      Most of Object[] and ArrayList[] are used for storing Interceptors (as profiler show for hdump).

       

      after 5 minutes:

       

      java.lang.Object[]314 000202 225 9064
      java.util.Arrays$ArrayList244 8611510 447 44320
      org.jboss.invocation.Interceptor[]164 4671010 434 89120jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/
      org.jboss.invocation.ChainedInterceptor162 0961010 374 18820jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/

       

      after 4 hours:

       

      org.jboss.invocation.Interceptor[]471 5151629 911 86429jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/
      org.jboss.invocation.ChainedInterceptor464 5871529 733 57328jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/
      java.util.Arrays$ArrayList701 0932329 913 31429
      java.lang.Object[]587 66020876 5570

       

      Spring is located in separate module, jsf libraries are used through dependencies.

      Application is deployed as single WAR.

      WEB-INF\lib:

      darkX-3.3.1.GA.jar

      javamelody-1.33.0.jar

      jrobin-1.5.9.jar

      jstl-1.2.jar

      richfaces-api-3.3.1.GA.jar

      richfaces-impl-3.3.1.GA.jar

      richfaces-ui-3.3.1.GA.jar

       

      Configuration files from WEB-INF are attached.

       

      Thanks in advance for any suggestions.