-
1. Re: problem with REPL_SYNC and REPL_ASYNC
belaban Mar 9, 2005 11:45 AM (in response to amitb.in)what's the exception ?
-
2. Re: problem with REPL_SYNC and REPL_ASYNC
amitb.in Mar 11, 2005 10:57 AM (in response to amitb.in)Hi,
Exceptions are for --
Asynchronous Cache Mode
1. ?With default Java Heap Size (64 MB)?, It is throwing an exception on putting around 2500th element and program terminates. The exception is ??.
Exception in thread "main" org.jboss.util.NestedRuntimeException: Java heap space; -
nested throwable: (java.lang.OutOfMemoryError: Java heap space)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.put(TreeCache.java:1749)
at org.jboss.cache.TreeCache.put(TreeCache.java:1732)
at TestTreeView.main(TestTreeView.java:53)
Caused by: java.lang.OutOfMemoryError: Java heap space
2.With the Java Heap Size is increased to 500 MB, then it is taking 10 seconds for putting all 5000 entries in the cache.
Synchronous Cache Mode
1. ?With default Java Heap Size (64 MB)?, It is throwing an exception on putting every 50th element. The exception is ??.
org.jboss.util.NestedRuntimeException: rsp=sender=SGNSCC397599901:2377, retval=null, received=false, suspected=false; - nested throwable: (org.jboss.cache.lock.TimeoutException: rsp=sender=SGNSCC397599901:2377, retval=null, received=false, suspected=false)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3248)
at org.jboss.cache.TreeCache.put(TreeCache.java:1749)
at org.jboss.cache.TreeCache.put(TreeCache.java:1732)
at TestTreeView.main(TestTreeView.java:49)
Caused by:org.jboss.cache.lock.TimeoutException: rsp=sender=SGNSCC397599901:2377, retval=null, received=false, suspected=false
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2153)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2175)
at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:85)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:43)
at org.jboss.cache.interceptors.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3245)
... 3 more
2. With the Java Heap Size is increased to 500 MB, then 1st time it is taking 999 seconds (approx. 16 minutes) for putting all 5000 entries in the cache and putting every 50th entry, it is throwing the above mentioned exception.
3. But the second time, when I run the java program, then it takes 350 seconds (approx. 6 minutes) for putting all 5000 entries and sometimes in between process, the ?Java Heap Out of Memory exception? is coming.
Regards
Amit -
3. Re: problem with REPL_SYNC and REPL_ASYNC
belaban Mar 27, 2005 8:50 AM (in response to amitb.in)- What version (1.2.1) ?
- What JGroups repl props (fc-fast?) ?
- Are you using the replication queue for async repl ?
- Are you using transactions ? If so, do you wrap every put() into a TX.begin()/commit() ?