数据源 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager

来源:3-8 _广告模块开发_分页标签封装

cjozGV

2019-09-29

03:16:32.281 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-AdminTaskTimer] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - Refurbishing idle resources - Sun Sep 29 03:16:32 CST 2019 [com.mchange.v2.resourcepool.BasicResourcePool@44cceaee]
03:16:32.281 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#0] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@8574266] on IDLE CHECK.
03:16:32.281 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#2] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@3fbc46ac] on IDLE CHECK.
03:16:32.281 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@2bdef838] on IDLE CHECK.
03:16:32.282 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#0] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@8574266] on IDLE CHECK has SUCCEEDED.
03:16:32.282 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@2bdef838] on IDLE CHECK has SUCCEEDED.
03:16:32.282 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#2] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@3fbc46ac] on IDLE CHECK has SUCCEEDED.
03:16:32.282 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#0] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@6d165f36] on IDLE CHECK.
03:16:32.282 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@73dcd74b] on IDLE CHECK.
03:16:32.283 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-AdminTaskTimer] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - Checking for expired resources - Sun Sep 29 03:16:32 CST 2019 [com.mchange.v2.resourcepool.BasicResourcePool@44cceaee]
03:16:32.284 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-AdminTaskTimer] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - BEGIN check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@44cceaee]
03:16:32.284 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#0] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@6d165f36] on IDLE CHECK has SUCCEEDED.
03:16:32.284 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-AdminTaskTimer] DEBUG com.mchange.v2.resourcepool.BasicResourcePool - FINISHED check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@44cceaee]
03:16:32.284 [C3P0PooledConnectionPoolManager[identityToken->1hge0yta5xnjgfbz7t7s7|4fdf9832]-HelperThread-#1] DEBUG com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@73dcd74b] on IDLE CHECK has SUCCEEDED.
03:16:33.400 [http-apr-8081-exec-4] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession
03:16:33.400 [http-apr-8081-exec-4] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2f6566b7] was not registered for synchronization because synchronization is not active
03:16:33.401 [http-apr-8081-exec-4] DEBUG org.mybatis.spring.transaction.SpringManagedTransaction - JDBC Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@259d0dc7 [wrapping: com.mysql.jdbc.JDBC4Connection@62000e36]] will not be managed by Spring
03:16:33.401 [http-apr-8081-exec-4] DEBUG org.imooc.dao.AdDao.selectByPage - ==>  Preparing: select count(*) from(select id,title,img_file_name,link,weight from ad order by weight desc,id)t 
03:16:33.402 [http-apr-8081-exec-4] DEBUG org.imooc.dao.AdDao.selectByPage - ==> Parameters: 
03:16:33.406 [http-apr-8081-exec-4] DEBUG org.imooc.dao.AdDao.selectByPage - ==>  Preparing: select id,title,img_file_name,link,weight from ad order by weight desc,id limit 0,5 
03:16:33.407 [http-apr-8081-exec-4] DEBUG org.imooc.dao.AdDao.selectByPage - ==> Parameters: 
03:16:33.409 [http-apr-8081-exec-4] DEBUG org.imooc.dao.AdDao.selectByPage - <==      Total: 5
03:16:33.409 [http-apr-8081-exec-4] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2f6566b7]


写回答

2回答

源生活

2019-09-29

想问什么?

1
6
cjozGV
我看连接池打印的日志 后面跟太多false 和null了,我以为连接池连接超时或者失败了
2019-09-29
共6条回复

cjozGV

提问者

2019-09-29

 DEBUG com.mchange.v2.resourcepool.BasicResourcePool - com.mchange.v2.resourcepool.BasicResourcePool@58d703f8 config: [start -> 5; min -> 5; max -> 10; inc -> 3; num_acq_attempts -> 3; acq_attempt_delay -> 1000; check_idle_resources_delay -> 60000; max_resource_age -> 0; max_idle_time -> 60000; excess_max_idle_time -> 0; destroy_unreturned_resc_time -> 0; expiration_enforcement_delay -> 15000; break_on_acquisition_failure -> false; debug_store_checkout_exceptions -> false; force_synchronous_checkins -> false]

0
0

IT段子手详解MyBatis遇到Spring 秒学Java SSM开发大众点评

【毕设】SSM全面梳理,前后端分离,zTree 和复杂SQL打造权限系统,解惑MyBatis和RESTful

1001 学习 · 485 问题

查看课程