-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate c3p0 management
PostPosted: Mon Jan 11, 2010 10:24 am 
Newbie

Joined: Mon Jan 11, 2010 10:11 am
Posts: 1
Hi all,

I'm currently using Hibernate with C3P0.

I'd like to configure correctly c3p0, and i'm facing the following problem :

In a one hibernate session per user context, i've noticed that the number of busyConnection never drecreased during hibernate session lifetime. The number of busyConnection only decreased when I use the close() method on the hibernate session. I thought that DB sessions are not busy while no query is not executed with the hibernate session.

For example, with 10 users on the app, I have to declare 10 max connections in C3P0 conf. It's really unefficient since the 10 users doesn't used their db session at the same time!

Does anyone can explain me how busy connection are working, and what to do to reduce number of busy connection?
One solution may be the used one session per query context... But this significate a lot of jib on my side...

Thanks in advance,

Sebastien


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

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.