-->
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.  [ 5 posts ] 
Author Message
 Post subject: default values in hibernate.properties for c3p0
PostPosted: Tue Oct 14, 2003 8:32 am 
Regular
Regular

Joined: Tue Aug 26, 2003 6:59 pm
Posts: 89
Location: Somewhere in the Ghetto
I want to use c3p0 for connection pooling but I need the properties for configuring it, could someone provide me with some good default settings I can use in my hibernate.properties file to config c3p0 in a web-enviroment?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 1:46 pm 
Regular
Regular

Joined: Tue Aug 26, 2003 6:59 pm
Posts: 89
Location: Somewhere in the Ghetto
im using the values in the default hibernate.properties file:

hibernate.c3p0.max_size 2
hibernate.c3p0.min_size 2
hibernate.c3p0.timeout 5000
hibernate.c3p0.max_statements 100
hibernate.c3p0.validate false

are these good enough for a web-enviroment?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 3:05 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I would increase max size to a more appropriate value. I have no experience but 10 (or more ?) will be better than 2


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 5:54 pm 
Regular
Regular

Joined: Tue Aug 26, 2003 6:59 pm
Posts: 89
Location: Somewhere in the Ghetto
i increased it to 15, 2 did seem like it was low


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 6:23 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Actually, do some load tests with your app, with these values. Have a look at the DB CPU/Mem, App server CPU/Mem, etc. And change parameters one by one, you'll see the best real life parameter. It will take you 1 or 2 days (including building the functional case), and you'll be much more confident.


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