-->
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: Connections not released after lazy collect. initialization
PostPosted: Mon Sep 23, 2013 1:39 pm 
Newbie

Joined: Wed May 15, 2013 1:33 pm
Posts: 2
After upgrading to hibernate 4.2.4 from 3.6 database connections are not returned to pool after initialisation of lazy collection. As result connection pool is exhausted very quickly when number of users exceeds number of connections in the pool.
Similar symptoms are described in HHH-4808 but we haven't observed those problems in Hib. 3.1-3.6


Relevant settings:

hibernate.connection.autocommit=true
hibernate.connection.release_mode=after_transaction



After collection is initialized there is no open transaction. So according to setting connection has to be released


In hibernate 3.6 connection was released (through indirect call to ConnectionManager.aggresiveRelease() from OneToManyLoader).
This is very critical change for our usage scenario. Was this change intentional? Is it possible to activate old behaviour through some combination of settings?
Thank you.


Top
 Profile  
 
 Post subject: Re: Connections not released after lazy collect. initialization
PostPosted: Wed Oct 02, 2013 11:18 am 
Newbie

Joined: Mon May 23, 2005 4:23 am
Posts: 4
Hi guys,

I observe the same issue. Any suggestions?


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.