3 Replies Latest reply on Apr 16, 2006 10:23 PM by Madhav Inamti

    StatefulSessionEnterpriseContext

    Madhav Inamti Novice

      I am running stress tests on Stateful EJB with JBoss 3.2.8 SP1 snd testing memory cnsumption using JProbe. JBoss runs out of Memory after 10 hours. ( 128 MB min and 512 MB max)

      Has anybody seen something similar ?


      The objects with high counts are

      org.jboss.ejb.StatefulSessionEnterpriseContext

      org.jboss.util.id.UID
      org.jboss.invocation.InvokerInterceptor
      org.jboss.ejb. StatefulSessionEnterpriseContext$StatefulSessionContextImpl
      org.jboss.resource.connectionmanager.CachedConnectionManager$KeyConnectionAssociation
      org.jboss.proxy.ClientContainer
      org.jboss.proxy.ejb.StatefulSessionInterceptor
      org.jboss.invocation.InvocationContext
      org.jboss.proxy.SecurityInterceptor
      org.jboss.proxy.TransactionInterceptor

      Runtime Heap Summary
      ====================

      Runtime Instance List
      ---------------------

      Package Class Count Memory
      ------- ----- ----- ------
      Total 1,522,504 34,105,152
      org.jboss.ejb StatefulSessionEnterpriseContext 152,240 (10.0%) 8,525,440 (25.0%)
      org.jboss.util.id UID 152,241 (10.0%) 3,653,784 (10.7%)
      org.jboss.invocation InvokerInterceptor 152,240 (10.0%) 3,653,760 (10.7%)
      org.jboss.ejb StatefulSessionEnterpriseContext$StatefulSessionContextImpl 152,240 (10.0%) 3,653,760 (10.7%)
      org.jboss.resource.connectionmanager CachedConnectionManager$KeyConnectionAssociation 152,241 (10.0%) 2,435,856 (7.1%)
      org.jboss.proxy ClientContainer 152,240 (10.0%) 2,435,840 (7.1%)
      org.jboss.proxy.ejb StatefulSessionInterceptor 152,240 (10.0%) 2,435,840 (7.1%)
      org.jboss.invocation InvocationContext 152,240 (10.0%) 2,435,840 (7.1%)
      org.jboss.proxy SecurityInterceptor 152,240 (10.0%) 2,435,840 (7.1%)
      org.jboss.proxy TransactionInterceptor 152,240 (10.0%) 2,435,840 (7.1%)
      org.jboss.tm TransactionImpl 8 (0.0%) 832 (0.0%)
      org.jboss.resource.connectionmanager NoTxConnectionManager$NoTxConnectionEventListener 8 (0.0%) 448 (0.0%)
      org.jboss.util.timeout TimeoutFactory$TimeoutImpl 7 (0.0%) 224 (0.0%)
      org.jboss.tm TxManager$ThreadInfo 8 (0.0%) 192 (0.0%)
      org.jboss.tm XidImpl 8 (0.0%) 192 (0.0%)
      org.jboss.util LRUCachePolicy$LRUCacheEntry 5 (0.0%) 160 (0.0%)
      org.jboss.invocation InvocationStatistics$TimeStatistic 3 (0.0%) 144 (0.0%)
      org.jboss.tm GlobalId 8 (0.0%) 128 (0.0%)
      org.jboss.resource.connectionmanager ConnectionRecord 5 (0.0%) 120 (0.0%)
      org.jboss.security SecurityAssociation$SubjectContext 3 (0.0%) 72 (0.0%)
      org.jboss.invocation MarshalledInvocation 1 (0.0%) 64 (0.0%)
      org.jboss.resource.connectionmanager InternalManagedConnectionPool 1 (0.0%) 64 (0.0%)
      org.jboss.logging Log4jLoggerPlugin 4 (0.0%) 64 (0.0%)
      org.jboss.invocation InvocationType 4 (0.0%) 64 (0.0%)
      org.jboss.logging Logger 4 (0.0%) 64 (0.0%)
      org.jboss.ejb.plugins.lock QueuedPessimisticEJBLock 1 (0.0%) 56 (0.0%)
      org.jboss.mx.server Invocation 1 (0.0%) 56 (0.0%)
      org.jboss.invocation MarshalledValueInputStream 1 (0.0%) 48 (0.0%)
      org.jboss.net.protocol.resource ResourceURLConnection 1 (0.0%) 40 (0.0%)
      org.jboss.invocation MarshalledValue 2 (0.0%) 32 (0.0%)
      org.jboss.resource.connectionmanager IdleRemover 1 (0.0%) 32 (0.0%)
      org.jboss.metadata MethodAttributes 1 (0.0%) 24 (0.0%)
      org.jboss.mx.server AbstractMBeanInvoker$OperationKey 1 (0.0%) 16 (0.0%)
      org.jboss.net.protocol URLListerFactory 1 (0.0%) 16 (0.0%)
      org.jboss.invocation SecurityActions$3 1 (0.0%) 16 (0.0%)
      org.jboss.invocation SecurityActions$2 1 (0.0%) 16 (0.0%)
      org.jboss.resource.connectionmanager InternalManagedConnectionPool$Counter 1 (0.0%) 16 (0.0%)
      org.jboss.ejb.plugins SecurityActions$12 1 (0.0%) 16 (0.0%)
      org.jboss.resource.connectionmanager IdleRemover$IdleRemoverRunnable 1 (0.0%) 16 (0.0%)
      org.jboss.ejb.plugins SecurityActions$11 1 (0.0%) 16 (0.0%)
      org.jboss.resource.connectionmanager JBossManagedConnectionPool$SubPoolContext 1 (0.0%) 16 (0.0%)
      org.jboss.ejb.plugins SecurityActions$10 1 (0.0%) 16 (0.0%)
      org.jboss.invocation.jrmp.server JRMPInvoker$4 1 (0.0%) 16 (0.0%)
      org.jboss.invocation.jrmp.server JRMPInvoker$3 1 (0.0%) 16 (0.0%)
      org.jboss.ejb.plugins SecurityActions$5 1 (0.0%) 8 (0.0%)
      org.jboss.ejb.plugins SecurityActions$14 1 (0.0%) 8 (0.0%)
      org.jboss.invocation SecurityActions$1 1 (0.0%) 8 (0.0%)
      org.jboss.ejb.plugins SecurityActions$9 1 (0.0%) 8 (0.0%)
      org.jboss.invocation.jrmp.server JRMPInvoker$2 1 (0.0%) 8 (0.0%)

      Garbage Monitor
      ---------------

      Package Class GC'ed Memory Released Size Alive Allocated At
      ------- ----- ----- --------------- ---- ----- ------------
      char[ ] 60,358,932 10,809,111,264 3,456 200 java.lang.StringBuffer.expandCapacity()
      java.lang String 47,178,189 1,132,276,536 24 33 java.lang.StringBuffer.toString()
      char[ ] 37,239,117 2,012,767,432 720 33 java.lang.StringBuffer.()
      java.lang String 15,641,400 375,393,600 24 12 java.lang.String.substring()
      java.nio HeapCharBuffer 12,901,634 619,278,432 48 0 java.nio.CharBuffer.wrap()
      java.lang StringBuffer 10,169,527 244,068,648 24 0 java.text.DateFormat.format()
      char[ ] 10,169,516 2,951,268,128 1,528 0 sun.nio.cs.StreamEncoder.write()
      org.apache.log4j.spi LoggingEvent 10,017,686 641,131,904 64 0 org.apache.log4j.Category.forcedLog()
      char[ ] 9,943,457 477,285,936 48 0 java.lang.StringBuffer.setLength()
      java.lang StringBuffer 9,401,229 225,629,496 24 0 java.io.ObjectInputStream$BlockDataInputStream.readUTFBody()



      Report Date: Apr 6, 2006 12:06:52 PM