c3p0连接线程中断,求高手指教,在线等

[ts-merchant-bill-dbfix-job]2015-03-07 19:37:21,617 INFO [com.mchange.v2.log.MLog] MLog clients using log4j logging.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:21,650 INFO [com.mchange.v2.c3p0.C3P0Registry] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:23,123 INFO [org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean] Initializing ExecutorService 'threadPoolService'
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:23,292 INFO [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 50, acquireRetryDelay -> 300, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt971vpi21v4xh5yu|314382c6, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt971vpi21v4xh5yu|314382c6, idleConnectionTestPeriod -> 60, initialPoolSize -> 15, jdbcUrl -> 10.1.6.201, maxAdministrativeTaskTime -> 5, maxConnectionAge -> 0, maxIdleTime -> 1800, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, numHelperThreads -> 6, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> SELECT 1, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:23,854 WARN [net.sf.ehcache.CacheManager] One or more caches require a DiskStore but there is no diskStore element configured. Using the default disk store path of /tmp. Please explicitly configure the diskStore element in ehcache.xml.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:25,693 INFO [net.sf.ehcache.util.UpdateChecker] New update(s) found: 2.6.5 [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. Please check http://ehcache.org for the latest version.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] A task has exceeded the maximum allowable task time. Will interrupt() thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4,5,main]], with current task: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@64e48e45
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] Thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4,5,main]] interrupted.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] A task has exceeded the maximum allowable task time. Will interrupt() thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]], with current task: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@593887c2
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] Thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]] interrupted.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] A task has exceeded the maximum allowable task time. Will interrupt() thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3,5,main]], with current task: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@e58ff51
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] Thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3,5,main]] interrupted.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] A task has exceeded the maximum allowable task time. Will interrupt() thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]], with current task: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@74e22632
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] Thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]] interrupted.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,288 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] A task has exceeded the maximum allowable task time. Will interrupt() thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]], with current task: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@2b39d891
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,289 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] Thread [Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]] interrupted.
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,289 WARN [com.mchange.v2.resourcepool.BasicResourcePool] com.mchange.v2.resourcepool.BasicResourcePool@6531767b -- Thread unexpectedly interrupted while performing an acquisition attempt.
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
[ts-merchant-bill-dbfix-job]2015-03-07 19:37:28,290 WARN [com.mchange.v2.resourcepool.BasicResourcePool] com.mchange.v2.resourcepool.BasicResourcePool@6531767b -- Thread unexpectedly interrupted while performing an acquisition attempt.
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

2个回答

可能是超时了,检查下连接是否中断,网络是否稳定。

修改一下超时时间,长点。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐