I am getting java.lang.OutOfMemoryError after a few hours when running a load 
test with the following setup.
JBoss AS 4.2.2 GA
JBM 1.4.0 SP3
JBoss Remoting 2.4.0.CR1 (Pinto) 
JDK 1.5.0_06
JVM arguments : -verbose:gc -XX:+PrintGCTimeStamps -XX:NewRatio=1 -Xms1024m 
-Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseParallelGC 
-Dsun.rmi.dgc.client.gcInterval=120000 -Dsun.rmi.dgc.server.gcInterval=120000

The Full GC times increase from 1 second at the beginning to 30 seconds in the 
end. The Old generation space gets filled to the max of 1GB and after sometime 
the Eden space is filled up to its max and GCs cannot claim any more space.

The memory usage is very stable when testing with JBossMQ.

The jboss remoting objects seem to be growing throughout the test. When testing 
with JBossMQ the jboss remoting objects are pretty stable and not nearly as 
many instances as with JBM. 

I have tried with JBoss Remoting version 2.2.2.SP4-brew as recommended in the 
JBM 1.4.0 SP3 documentation and I get the same behavior. 


Below is a heap snapshot towards the end of the test.
              
  

 769946 .. 168189k . char[]
2814906 . 98961k .. java.util.HashMap$Entry
936726 .. 88564k .. java.util.HashMap$Entry[]
2008055 . 54907k .. java.lang.String
936446 .. 51211k .. java.util.HashMap
434925 .. 25114k .. java.lang.Object[]
634584 .. 22309k .. java.util.Hashtable$Entry
1788960 . 20964k .. EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Segment 
(CL #2) 
389365 .. 18631k .. java.util.TreeMap$Entry
45601 ... 14903k .. byte[]
27873 ... 11840k .. org.jboss.remoting.transport.bisocket.BisocketServerInvoker 
(CL #4) 
243018 .. 11391k .. java.util.Collections$SynchronizedMap
86909 ... 9109k ... java.util.Hashtable$Entry[]
102026 .. 7970k ... nu.xom.Element (CL #78) 
55905 ... 7872k ... EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Entry[] 
(CL #2) 
55905 ... 7861k ... 
EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Segment[] (CL #2) 
306520 .. 7184k ... java.util.ArrayList
55751 ... 6642k ... org.jboss.remoting.loading.ClassByteClassLoader (CL #4) 
28026 ... 5391k ... org.jboss.jms.server.endpoint.ServerSessionEndpoint (CL #4) 
75425 ... 5376k ... 
org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlMonitorTimerTask
 (CL #4) 
28386 ... 4854k ... 
EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap$Entry[] (CL #2) 
27872 ... 4545k ... org.jboss.jms.server.endpoint.ServerConnectionEndpoint (CL 
#4) 
55905 ... 4149k ... EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap (CL #2) 
27917 ... 3953k ... org.jboss.remoting.Client (CL #4) 
6582 .... 3684k ... int[]
98963 ... 3479k ... 
EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap$Entry (CL #2) 
86490 ... 3378k ... java.lang.ref.WeakReference
58692 ... 3209k ... java.util.Hashtable
116937 .. 3197k ... java.util.Vector
52948 ... 2895k ... java.util.TreeMap
50254 ... 2748k ... nu.xom.Attribute (CL #78) 
27876 ... 2722k ... org.jboss.remoting.callback.ServerInvokerCallbackHandler 
(CL #4) 
84194 ... 2631k ... java.lang.ref.ReferenceQueue
335308 .. 2619k ... java.lang.Object
27903 ... 2506k ... org.jboss.remoting.InvokerLocator (CL #4) 
18018 ... 2410k ... java.lang.reflect.Method
28386 ... 2328k ... EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap 
(CL #2) 
28439 ... 2227k ... java.util.WeakHashMap$Entry[]
140604 .. 2196k ... java.util.HashSet
56231 ... 1976k ... EDU.oswego.cs.dl.util.concurrent.LinkedQueue (CL #2) 
27876 ... 1932k ... org.jboss.remoting.transport.local.LocalClientInvoker (CL 
#4) 
82629 ... 1901k ... nu.xom.Node[] (CL #78) 
28439 ... 1777k ... java.util.WeakHashMap
28210 ... 1763k ... java.util.Properties
28498 ... 1669k ... java.util.WeakHashMap$Entry
28104 ... 1564k ... org.jboss.aop.ClassInstanceAdvisor (CL #109) 
27876 ... 1524k ... org.jboss.remoting.InvocationRequest (CL #4) 
27977 ... 1420k ... org.jboss.util.LRUCachePolicy$LRUList (CL #2) 
86154 ... 1346k ... java.util.HashMap$EntrySet
56250 ... 1318k ... EDU.oswego.cs.dl.util.concurrent.LinkedNode (CL #2) 
28104 ... 1317k ... org.jboss.aop.InstanceAdvisorDelegate (CL #109) 
11647 ... 1296k ... org.jboss.mx.server.InvocationContext (CL #2) 
28029 ... 1122k ... EDU.oswego.cs.dl.util.concurrent.QueuedExecutor (CL #2) 
27875 ... 1116k ... org.jboss.remoting.transport.socket.LRUPool (CL #4) 
55778 ... 1089k ... org.jboss.remoting.Home (CL #4) 
27876 ... 1088k ... org.jboss.remoting.callback.DefaultCallbackErrorHandler (CL 
#4) 


I appreciate any help with this.
 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145900#4145900

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145900
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to