-
1. Re: Performance 4.0.2 vs 3.2.6
pkolaczk Oct 3, 2005 3:45 AM (in response to jaap)Switch to Hibernate 3.0.5. It's really cool. And it is really fast when you enable Jboss Tree cache.
After switching to Jboss 4 we've got over 100% performance boost, but this is mainly due to faster Hibernate and better caching (jboss cache instead of ehcache). -
2. Re: Performance 4.0.2 vs 3.2.6
mentiro Oct 3, 2005 9:57 AM (in response to jaap)What JVM are you running on? Did you change the JRE for the upgrade or stay at the same version?
-
3. Re: Performance 4.0.2 vs 3.2.6
jaap Oct 5, 2005 10:17 AM (in response to jaap)Hi,
I am using Sun's 1.5_02, that is unchanged.
I am working on migrating to hibernate 3.0.5 but that is not a trivial task. And, then it would mean that Hibernate 2 is a lot slower on 4 then on 3. I can imagine that possiblility, but my feeling is that JTA Transactions in 4 are more integrated in Jboss and they are the cause of the decrease in performance.
Jaap -
4. Re: Performance 4.0.2 vs 3.2.6
jaap Oct 9, 2005 2:59 AM (in response to jaap)Problem is solved
The cause was that JBoss 3 probably ignored the transaction-type in the ejb-jar.xml. And XDoclet sets it default to 'Container'. JBoss 4, in accordance to J2EE takes that hint serious and start performing (in my case needless) transactions and dragging performance by almost 50%.
So, make sure you add transaction-type="Bean" in XDoclet, if you want acceptable performance.