简体   繁体   English

Hibernate C3P0配置

[英]Hibernate c3p0 configuration

I am using Hibernate c3p0 configuration for connection pooling. 我正在使用Hibernate c3p0配置进行连接池。 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>'

You may have a Connection leak. 您可能有连接泄漏。 Please consider trying c3p0 config parameters unreturnedConnectionTimeout and debugUnreturnedConnectionStackTraces . 请考虑尝试C3P0的配置参数unreturnedConnectionTimeoutdebugUnreturnedConnectionStackTraces See the discussion here . 请参阅此处的讨论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM