-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Concurrency origin (database or hibernate)
PostPosted: Sun Aug 07, 2011 4:34 am 
Beginner
Beginner

Joined: Sun Oct 09, 2005 3:21 pm
Posts: 40
Using 3.6.4 of Hibernate....

Monitoring my application with Introscope. Seeing performance slowdown when the concurrent on my DAO (singleton through Spring) goes from a low of 1 up to 9. The number of active connections in the Weblogic DataPool (around DB2 driver type 4) increases in line with the concurrence. The response times for a particular query go from 30ms to 240ms.

Bottleneck (without doing any monitoring in DB2) appears to be DB2. Question is if there is any way Hibernate acts negatively? If for example the concurrence on a singleton DAO somehow puts a query in a wait state despite the apparent use of an extra connection? The obvious is that the query performs badly because DB2 isn't scaling. More wondering if there is the possibility of something to look for in the Hibernate set-up?


Top
 Profile  
 
 Post subject: Re: Concurrency origin (database or hibernate)
PostPosted: Mon Aug 15, 2011 5:00 am 
Beginner
Beginner

Joined: Sun Oct 09, 2005 3:21 pm
Posts: 40
Turns out the bottleneck is not related to Hibernate at all. Rather that there is a large amount of compilation time in DB2. Using XMLEXISTS in my queries and compilation takes over 50% of the total SQL execution time which gets worse with concurrency.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.