JBoss 7 / JSF 1.2 / Spring memory leak
igor12 Feb 1, 2012 3:50 AMHello,
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.
Class | IMemory, kb | % of memory | Instances | % of instances | Source |
java.util.Arrays$ArrayList | 170 423 | 19 | 7 271 391 | 25 | |
java.lang.Object[] | 162 592 | 18 | 565 385 | 1 | |
org.jboss.invocation.Interceptor[] | 114 581 | 13 | 7 269 673 | 25 | jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/ |
org.jboss.invocation.ChainedInterceptor | 112 926 | 12 | 7 227 327 | 25 | jar: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 000 | 20 | 2 225 906 | 4 | |
java.util.Arrays$ArrayList | 244 861 | 15 | 10 447 443 | 20 | |
org.jboss.invocation.Interceptor[] | 164 467 | 10 | 10 434 891 | 20 | jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/ |
org.jboss.invocation.ChainedInterceptor | 162 096 | 10 | 10 374 188 | 20 | jar: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 515 | 16 | 29 911 864 | 29 | jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/ |
org.jboss.invocation.ChainedInterceptor | 464 587 | 15 | 29 733 573 | 28 | jar:file:/home/jbosser/jboss-as-7.1.0.CR1b/modules/org/jboss/invocation/main/jboss-invocation-1.1.1.Final.jar!/ |
java.util.Arrays$ArrayList | 701 093 | 23 | 29 913 314 | 29 | |
java.lang.Object[] | 587 660 | 20 | 876 557 | 0 |
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.
-
web.xml 3.4 KB
-
services-servlet.xml 2.2 KB
-
services-app.xml 1.8 KB
-
jboss-web.xml 359 bytes
-
jbossjta-properties.xml 11.4 KB
-
jboss-deployment-structure.xml 782 bytes
-
faces-config.xml 901 bytes
-
context.xml 240 bytes