-->
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.  [ 3 posts ] 
Author Message
 Post subject: what is minimum & maximum pool size in hibernate
PostPosted: Thu Dec 18, 2008 7:56 am 
Newbie

Joined: Mon Jun 30, 2008 8:12 am
Posts: 12
Dear All,

what is the maximum and minimum pool size in hibernate.Please help me!!!


regards
arul


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 18, 2008 2:24 pm 
Newbie

Joined: Wed Dec 17, 2008 6:35 pm
Posts: 11
The minimum size of your connection pool is 0 (you can never have less than no connections in your pool).

Say you have 10 connections in your pool and they sit there being inactive (no one is using them). When they hit their idle timeout (eg 100s) that connection will be reaped. You will never reap lower than your minimum number of connections (if your min is set to 5 you won't drop lower than that). It is possible to have less connections than your min if your min is greater than 0 (eg at startup... although c3p0 has initialPoolSize).

A connection pool is just a pool of connections (for lack of a better explanation). When you need a connection you get one from the connection pool (I think of it as caching connections). If you set your max connections to 10 for example, and all 10 connections are being used, the user requesting that connection will have to wait until that connection frees up (typically...).

Your max should be set based on your concurrent user load in my opinion.


Last edited by timtheprogrammer on Thu Dec 18, 2008 4:46 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 18, 2008 4:36 pm 
Newbie

Joined: Wed Dec 17, 2008 6:35 pm
Posts: 11
if you are using C3P0 you should probably check out

http://www.hibernate.org/214.html

it has all sorts of nifty things like idle_test_period and acquire_increment etc (you won't have the problems I do).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.