-->
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: Problem in connection pooling ...
PostPosted: Tue Sep 04, 2012 4:21 am 
Newbie

Joined: Tue Sep 04, 2012 4:09 am
Posts: 1
Hi,
this is my first question and hope this will be answered.

My application is in java,jsp,servlet and hibernate. when I am using the following configuration my application is working fast and good.

property name is : <property name="hibernate.connection.pool_size">10</property>

but some time I get exception like "too many connection"

To rectify this I used following properties :

<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">300</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
<property name="hibernate.c3p0.max_statements">50</property>


but this makes my application very slow when I am using select from and insert operation.


I am in middle of my application , I searched a lot but did'nt got solution to it.

Regards,


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.