[jboss-user] [JBossCache] - Re: Performance Tests and TimeoutException
ggrise
do-not-reply at jboss.com
Thu Feb 15 11:53:08 EST 2007
more informations about my problem:
We still experience concurrent problem whether the cache is configured optimistic or pessimistic. Our test is simple:
1- A POJO containing a collection (HashMap) is written into the cache by JVM1 (line 5-6).
2- Then JVM1 to JVM8 are putting objects 1024 bytes into the collection (13-15) and reading the back the object from the collection (16-22).
| 1 JVM1-8:
| 2 PojoCache cache = new PojoCache(); //including start();
| 3 sleep 2
| -----------------------------------------------------------------------
| 4 JVM1: | JVM2-8:
| 5 ObjectWithHashMap owhm = new ObjectWithHashMap(); | sleep 0.5
| 6 cache.putObject("/hashObj", owt); |
| -----------------------------------------------------------------------
| 7 JVM1-8: |
| 8 ObjectWithHashMap owhm = cache.getObject("/hashObj"); |
| 9 while(owhm == null) { |
| 10 owhm = cache.getObject("/hashObj"); |
| 11 sleep 0.5 |
| 12 } |
| |
| 13 for(int i = 0; i < 5; i++) { |
| 14 owhm.put("JVM${JVM_NUMBER}"+i, new PojoOf1024bytes());|
| 15 } |
| 16 for(int i = 0; i < 5; i++) { |
| 17 PojoOf1024bytes pi = owhm.get("JVM1"+i); |
| 18 while(pi == null) { |
| 19 pi=owhm.get("JVM1"+i); |
| 21 sleep 0.5
| 22 }
| 23 }
|
With optimistic observation:
============================
some JVM are unable to take objects inside the collection (lines 16-22), and in other case, unable to take pojo containing the collection.
With pessimistic observation:
============================
We timeout exception or the same behavior as with optimistic
thanks
Gabriel.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017125#4017125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017125
More information about the jboss-user
mailing list