-->
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: Hibernate list performance degradation
PostPosted: Thu Nov 12, 2015 11:43 pm 
Newbie

Joined: Thu Nov 12, 2015 11:36 pm
Posts: 1
We are facing a performance degradation caused by hibernate due to most of the time spent on getstatus() method present in class oracle.ucp.common.UniversalPooledConnectionImpl. This degradation is reported by the profiling tool DynaTrace. We are still trying to figure out the exact functionality of the method getstatus().

We have the Dynatrace session for the same functionality, before degradation and after degradation.

- We looked at the query execution time, and there seems no degradation in it.
- No N+1 query problem. Only single query.
- Query gives back around 60000 records. It seems like most time is spent on Hibernate analyzing the result of query and as per Dynatrace profiler. Most of the time is spent on getsstatus() method of the UniversalPooledConnectionImpl and this method is invoked by hibernate. And there is significant increase (x4) in number of times this method is called which is leading to the delay.
- Project stack: Spring/Hibernate/JPA/oracle UCP. Hardware: SunOS 5.10 (X86).

There is no change in query, data, hibernate version, UCP version that we were using. The only change we made is we moved our hardware from Solaris SPARC to Solaris X86 machines. But i really do not see how this could lead to hibernate performance degradation.

I searched for the pointers on web, but could not land anywhere. Please help.


Top
 Profile  
 
 Post subject: Re: Hibernate list performance degradation
PostPosted: Wed Nov 25, 2015 2:46 pm 
Regular
Regular

Joined: Mon Oct 19, 2015 7:49 am
Posts: 61
Location: ChengDu China
For big resultset, don't use the org.hibernate.Query.list, please use org.hibernate.Query.iterator.


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.