Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hibernate 缓存语句是否不允许终止连接?_Hibernate_C3p0 - Fatal编程技术网

Hibernate 缓存语句是否不允许终止连接?

Hibernate 缓存语句是否不允许终止连接?,hibernate,c3p0,Hibernate,C3p0,我有一个使用Hibernate3.4和C3P00.9.1的应用程序。我面临数据库连接超时错误 我的Persistence.xml文件是 <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driv

我有一个使用Hibernate3.4和C3P00.9.1的应用程序。我面临数据库连接超时错误

我的Persistence.xml文件是

        <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
        <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
        <property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
        <property name="hibernate.connection.url" value="jdbc:mysql://XXX.XXX.XXX.XXX:XXXX/app?autoReconnect=true"/>
        <property name="hibernate.connection.username" value="XXXXX"/>
        <property name="hibernate.connection.password" value="XXXXX"/>
        <property name="hibernate.generate_statistics" value="true"/>
        <property name="hibernate.cache.provider_class" value="org.hibernate.cache.OSCacheProvider"/>
        <property name="hibernate.cache.use_second_level_cache" value="true"/>
        <property name="hibernate.show_sql" value="true"/>
        <property name="hibernate.format_sql" value="true"/>
        <property name="hibernate.c3p0.min_size" value="5"/>
        <property name="hibernate.c3p0.max_size" value="20"/>
        <property name="hibernate.c3p0.timeout" value="1800"/>
        <property name="hibernate.c3p0.max_statements" value="50"/>
        <property name="hibernate.c3p0.idle_test_period" value="300"/>
        <property name="c3p0.preferredTestQuery" value="select * from status"/>
        <property name="c3p0.testConnectionOnCheckout" value="true"/>
        <property name="c3p0.debugUnreturnedConnectionStackTraces" value="true"/>
更新2

当tomcat启动时,我在日志中看到以下条目——从persistence.xml读取的值

properties[
    hibernate.connection.password: neilsoft
    c3p0.testConnectionOnCheckout: true
    hibernate.c3p0.idle_test_period: 300
    hibernate.cache.use_second_level_cache: true
    hibernate.show_sql: true
    hibernate.c3p0.max_statements: 50
    hibernate.c3p0.timeout: 1800
    hibernate.generate_statistics: true
    hibernate.c3p0.min_size: 5
    hibernate.format_sql: true
    hibernate.connection.username: root
    c3p0.debugUnreturnedConnectionStackTraces: true
    hibernate.connection.driver_class: com.mysql.jdbc.Driver
    hibernate.cache.provider_class: org.hibernate.cache.OSCacheProvider
    c3p0.preferredTestQuery: select * from status
    hibernate.c3p0.max_size: 20
    hibernate.connection.provider_class: org.hibernate.connection.C3P0ConnectionProvider
    hibernate.dialect: org.hibernate.dialect.MySQLDialect
    hibernate.connection.url: jdbc:mysql://10.2.2.236:3306/lbs?autoReconnect=true
]]
和c3p0初始值为:

07 Aug 2013 01:46:32 20206 [http-8080-1] INFO  org.hibernate.connection.ConnectionProviderFactory  - Initializing connection provider: org.hibernate.connection.C3P0ConnectionProvider
07 Aug 2013 01:46:32 20207 [http-8080-1] INFO  org.hibernate.connection.C3P0ConnectionProvider  - C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://ec2-67-202-10-105.compute-1.amazonaws.com:3306/lbs?autoReconnect=true
07 Aug 2013 01:46:32 20207 [http-8080-1] INFO  org.hibernate.connection.C3P0ConnectionProvider  - Connection properties: {user=XXXX, password=****, autocommit=true, release_mode=auto}
07 Aug 2013 01:46:32 20207 [http-8080-1] INFO  org.hibernate.connection.C3P0ConnectionProvider  - autocommit mode: true
07 Aug 2013 01:46:32 20217 [http-8080-1] INFO  com.mchange.v2.log.MLog  - MLog clients using log4j logging.
07 Aug 2013 01:46:32 20434 [http-8080-1] INFO  com.mchange.v2.c3p0.C3P0Registry  - Initializing c3p0-0.9.1 [built 16-January-2007 14:46:42; debug? true; trace: 10]
07 Aug 2013 01:46:32 20470 [http-8080-1] DEBUG com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean  - MBean: com.mchange.v2.c3p0:type=PooledDataSource[2zreza8wnzkcdpvnjkja|14c7a98] registered.
07 Aug 2013 01:46:32 20535 [http-8080-1] DEBUG com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean  - MBean: com.mchange.v2.c3p0:type=PooledDataSource[2zreza8wnzkcdpvnjkja|14c7a98] unregistered, in order to be reregistered after update.
07 Aug 2013 01:46:32 20535 [http-8080-1] DEBUG com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean  - MBean: com.mchange.v2.c3p0:type=PooledDataSource[2zreza8wnzkcdpvnjkja|14c7a98] registered.
07 Aug 2013 01:46:32 20665 [http-8080-1] INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@b5006db1 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@6724e358 [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, **debugUnreturnedConnectionStackTraces -> true**, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2zreza8wnzkcdpvnjkja|1c7d56b, **idleConnectionTestPeriod -> 300**, initialPoolSize -> 5, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, m**axIdleTime -> 1800**, maxIdleTimeExcessConnections -> 0, **maxPoolSize -> 20, maxStatements -> 50**, maxStatementsPerConnection -> 0, **minPoolSize -> 5**, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@35a58726 [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 2zreza8wnzkcdpvnjkja|71949b, jdbcUrl -> jdbc:mysql://XXX.XXX.XXX.XXX:XXXX/app?autoReconnect=true, properties -> {user=******, password=******, autocommit=true, release_mode=auto} ], **preferredTestQuery -> select * from status**, propertyCycle -> 0, testConnectionOnCheckin -> false, **testConnectionOnCheckout -> true**, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> 2zreza8wnzkcdpvnjkja|14c7a98, numHelperThreads -> 3 ]
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 1
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 2
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 3
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 4
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 5
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - **com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 config: [start -> 5; min -> 5; max -> 20; inc -> 3; num_acq_attempts -> 30; acq_attempt_delay -> 1000; check_idle_resources_delay -> 300000; mox_resource_age -> 0; max_idle_time -> 1800000; excess_max_idle_time -> 0; destroy_unreturned_resc_time -> 0; expiration_enforcement_delay -> 450000; break_on_acquisition_failure -> false; debug_store_checkout_exceptions -> false]**
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - acquire test -- pool size: 0; target_pool_size: 5; desired target? 1
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - awaitAvailable(): [unknown]
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 0, unused: 0, excluded: 0]
07 Aug 2013 01:46:32 20782 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:32 20782 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:32 20782 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:32 20783 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 1, unused: 1, excluded: 0]
07 Aug 2013 01:46:32 20783 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 4
07 Aug 2013 01:46:32 20784 [http-8080-1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f] on CHECKOUT.
07 Aug 2013 01:46:32 20783 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:32 20787 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 2, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:32 20787 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 3
07 Aug 2013 01:46:32 20789 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:32 20790 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:32 20790 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 3, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:32 20790 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 2
07 Aug 2013 01:46:33 20843 [http-8080-1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20843 [http-8080-1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f] on CHECKOUT has SUCCEEDED.
07 Aug 2013 01:46:33 20843 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 3, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 4, unused: 3, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 1
07 Aug 2013 01:46:33 20850 [http-8080-1] INFO  org.hibernate.cfg.SettingsFactory  - RDBMS: MySQL, version: 5.1.49-1ubuntu8
07 Aug 2013 01:46:33 20850 [http-8080-1] INFO  org.hibernate.cfg.SettingsFactory  - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.16 ( Revision: ${bzr.revision-id} )
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 5, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 0
07 Aug 2013 01:46:33 20915 [http-8080-1] INFO  org.hibernate.dialect.Dialect  - Using dialect: org.hibernate.dialect.MySQLDialect
07 Aug 2013 01:46:33 20917 [http-8080-1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20918 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 5, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20918 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0

请显示您看到的异常。(回答您的问题:语句缓存不会阻止连接释放回池,也不会阻止连接测试或过期。)请注意,您看到的异常记录在调试级别。这是c3p0“注意到”表示连接中断的客户端所经历的异常的日志。将不允许连接返回池。综上所述,在您描述的设置下,您的应用程序不应该看到db超时连接。一些建议:1)升级到C3P00.9.2.1。0.9.1非常古老。2) 使用JMX或c3p0在pool init上的转储config来验证您的配置是否是您所认为的。我已经在上面的问题中从日志文件中添加了c3p0初始化值。您好--您应该可以直接从pool init上的c3p0@INFO level看到一个日志条目。检查这一点总是好的,以确保通过许多层的包装器和接口,c3p0实际上看到了您希望提供的配置。(您也可以通过JMX检查。)您想要的日志条目应该以字符串“Initializing c3p0 pool…”开头。
@SteveWaldman
我想知道我是否将c3p0 jar从0.9.1升级到0.9.2.1-是否有任何理由将每个连接的跟踪记录到日志文件中-请求、执行、关闭?
07 Aug 2013 01:46:32 20206 [http-8080-1] INFO  org.hibernate.connection.ConnectionProviderFactory  - Initializing connection provider: org.hibernate.connection.C3P0ConnectionProvider
07 Aug 2013 01:46:32 20207 [http-8080-1] INFO  org.hibernate.connection.C3P0ConnectionProvider  - C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://ec2-67-202-10-105.compute-1.amazonaws.com:3306/lbs?autoReconnect=true
07 Aug 2013 01:46:32 20207 [http-8080-1] INFO  org.hibernate.connection.C3P0ConnectionProvider  - Connection properties: {user=XXXX, password=****, autocommit=true, release_mode=auto}
07 Aug 2013 01:46:32 20207 [http-8080-1] INFO  org.hibernate.connection.C3P0ConnectionProvider  - autocommit mode: true
07 Aug 2013 01:46:32 20217 [http-8080-1] INFO  com.mchange.v2.log.MLog  - MLog clients using log4j logging.
07 Aug 2013 01:46:32 20434 [http-8080-1] INFO  com.mchange.v2.c3p0.C3P0Registry  - Initializing c3p0-0.9.1 [built 16-January-2007 14:46:42; debug? true; trace: 10]
07 Aug 2013 01:46:32 20470 [http-8080-1] DEBUG com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean  - MBean: com.mchange.v2.c3p0:type=PooledDataSource[2zreza8wnzkcdpvnjkja|14c7a98] registered.
07 Aug 2013 01:46:32 20535 [http-8080-1] DEBUG com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean  - MBean: com.mchange.v2.c3p0:type=PooledDataSource[2zreza8wnzkcdpvnjkja|14c7a98] unregistered, in order to be reregistered after update.
07 Aug 2013 01:46:32 20535 [http-8080-1] DEBUG com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean  - MBean: com.mchange.v2.c3p0:type=PooledDataSource[2zreza8wnzkcdpvnjkja|14c7a98] registered.
07 Aug 2013 01:46:32 20665 [http-8080-1] INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@b5006db1 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@6724e358 [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, **debugUnreturnedConnectionStackTraces -> true**, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2zreza8wnzkcdpvnjkja|1c7d56b, **idleConnectionTestPeriod -> 300**, initialPoolSize -> 5, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, m**axIdleTime -> 1800**, maxIdleTimeExcessConnections -> 0, **maxPoolSize -> 20, maxStatements -> 50**, maxStatementsPerConnection -> 0, **minPoolSize -> 5**, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@35a58726 [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 2zreza8wnzkcdpvnjkja|71949b, jdbcUrl -> jdbc:mysql://XXX.XXX.XXX.XXX:XXXX/app?autoReconnect=true, properties -> {user=******, password=******, autocommit=true, release_mode=auto} ], **preferredTestQuery -> select * from status**, propertyCycle -> 0, testConnectionOnCheckin -> false, **testConnectionOnCheckout -> true**, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> 2zreza8wnzkcdpvnjkja|14c7a98, numHelperThreads -> 3 ]
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 1
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 2
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 3
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 4
07 Aug 2013 01:46:32 20713 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - incremented pending_acquires: 5
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - **com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 config: [start -> 5; min -> 5; max -> 20; inc -> 3; num_acq_attempts -> 30; acq_attempt_delay -> 1000; check_idle_resources_delay -> 300000; mox_resource_age -> 0; max_idle_time -> 1800000; excess_max_idle_time -> 0; destroy_unreturned_resc_time -> 0; expiration_enforcement_delay -> 450000; break_on_acquisition_failure -> false; debug_store_checkout_exceptions -> false]**
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - acquire test -- pool size: 0; target_pool_size: 5; desired target? 1
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - awaitAvailable(): [unknown]
07 Aug 2013 01:46:32 20738 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 0, unused: 0, excluded: 0]
07 Aug 2013 01:46:32 20782 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:32 20782 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:32 20782 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:32 20783 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 1, unused: 1, excluded: 0]
07 Aug 2013 01:46:32 20783 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 4
07 Aug 2013 01:46:32 20784 [http-8080-1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f] on CHECKOUT.
07 Aug 2013 01:46:32 20783 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:32 20787 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 2, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:32 20787 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 3
07 Aug 2013 01:46:32 20789 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:32 20790 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:32 20790 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 3, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:32 20790 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 2
07 Aug 2013 01:46:33 20843 [http-8080-1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20843 [http-8080-1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f] on CHECKOUT has SUCCEEDED.
07 Aug 2013 01:46:33 20843 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 3, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 4, unused: 3, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20848 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 1
07 Aug 2013 01:46:33 20850 [http-8080-1] INFO  org.hibernate.cfg.SettingsFactory  - RDBMS: MySQL, version: 5.1.49-1ubuntu8
07 Aug 2013 01:46:33 20850 [http-8080-1] INFO  org.hibernate.cfg.SettingsFactory  - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.16 ( Revision: ${bzr.revision-id} )
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool  - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@320399.acquireResource() returning. 
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 5, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20852 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - decremented pending_acquires: 0
07 Aug 2013 01:46:33 20915 [http-8080-1] INFO  org.hibernate.dialect.Dialect  - Using dialect: org.hibernate.dialect.MySQLDialect
07 Aug 2013 01:46:33 20917 [http-8080-1] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
07 Aug 2013 01:46:33 20918 [http-8080-1] DEBUG com.mchange.v2.resourcepool.BasicResourcePool  - trace com.mchange.v2.resourcepool.BasicResourcePool@5e9f1 [managed: 5, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1ed688f)
07 Aug 2013 01:46:33 20918 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG com.mchange.v2.c3p0.stmt.GooGooStatementCache  - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0