Suresh U
Suresh U

Reputation: 463

Hibernate c3p0 configuration

I am using Hibernate c3p0 configuration for connection pooling. some times my appliaction has exhausted, is there any problem with my code. can any one please help me."my code is like this".

'

   <property name="hibernate.c3p0.min_size">5</property>
   <property name="hibernate.c3p0.max_size">100</property>
   <property name="hibernate.c3p0.timeout">1800</property>
   <property name="hibernate.c3p0.max_statements">20</property>
   <property name="hibernate.c3p0.idle_test_period">3000</property>
   <property name="connection.provider_class">
      org.hibernate.connection.C3P0ConnectionProvider
   </property>'

Upvotes: 0

Views: 1380

Answers (1)

Steve Waldman
Steve Waldman

Reputation: 14083

You may have a Connection leak. Please consider trying c3p0 config parameters unreturnedConnectionTimeout and debugUnreturnedConnectionStackTraces. See the discussion here.

Upvotes: 2

Related Questions