Hi,
I've done some benchmarking and found some very suprising results (times in seconds):
Code:
Standalone wo Standalone with JBoss wo JBoss with
Persist 2,0 2,4 7,6 15,7
1. read, new ses 4,3 0,3 10,9 7,2
2. read JDBC direct 2,6 2,4 2,3 3
I tryed to persist and read 10.000 small objects (with and wo 2'nd Level Cache) and I've done this in standalone and JBoss environment. Suprisingly JBoss with 2'nd Level Cache took 6 times as long as standalone to persist. For reading from 2'nd Level cache, the difference is a lot larger.
Environment was: J2SDK1.4.2_01; winxp; MySql and JBoss3.2.6 running on same machine. For Standalone I used EHcache, in JBoss env. I used TreeCache.
My measurements support your finding: TreeCache brings not the huge speedup, as known from EHcache. For me it's a factor 2 or below.
I don't know wether and where I've done misconfiguration. If sombody is interested in, sources can be found on
http://cvs.sourceforge.net/viewcvs.py/sens/Hibernate_JBoss3.2/ ... hints&help are very welcome.
Kind regards,
Michael