-->
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: performance problems with hibernate
PostPosted: Sat Jan 21, 2006 5:34 am 
Newbie

Joined: Fri Jan 20, 2006 7:07 am
Posts: 2
Location: Italy
Hi all,
i'm developing a CAA (Computer Aided Assessment) application with Struts,Hibernate,Jboss,Firebird database. i tested my application, simulating a University exam test with about 45 students, and all gone very slow. So i've noticed that i used hibernate default connections pool manager with these parameters :
hibernate.connection.pool_size = 1
hibernate.statement_cache.size = 25.
Is this the cause of slow perfomance of my application? i tried to substitute the hibernate default connections pool manager with c3p0 library, and set c3p0 properties:
hibernate.c3p0.min_size=15
hibernate.c3p0.max_size=50
hibernate.c3p0.timeout=1800
hibernate.c3p0.max_statement=50
Can anyone tell me what values of these properties are good for my application?
thanks to all for attention, and sorry for my english :-)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 21, 2006 6:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Don't use hibernates built in connection pool for production - only test. In anycase, have just one connection is not great for concurrent processing (eg it cannot do any).

C3PO is a fine connection pool - settings are dependent on concurrent access requireemnts and balancing memory use etc. You configuation you had shown should be fine as a starting point.


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.