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
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869755#3869755
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869755
|