问题描述
2014-07-2916:23:41,771WARN[com.mchange.v2.async.ThreadPoolAsynchronousRunner]-<com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1dad1dad--APPARENTDEADLOCK!!!Creatingemergencythreadsforunassignedpendingtasks!>2014-07-2916:23:41,774WARN[com.mchange.v2.async.ThreadPoolAsynchronousRunner]-<com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1dad1dad--APPARENTDEADLOCK!!!CompleteStatus:ManagedThreads:3ActiveThreads:3ActiveTasks:com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23992399(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23a423a4(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23af23af(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)PendingTasks:com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23ba23bacom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23c523c5com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23d023d0com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23db23dbcom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23e623e6com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23f123f1com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@23fc23fccom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@24072407com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@24122412com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@241d241dcom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@24282428com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@24332433com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@243e243ecom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@24492449com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@24542454com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@245f245fcom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@246a246aPoolthreadstacktraces:Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]java.lang.Thread.sleep(NativeMethod)java.lang.Thread.sleep(Thread.java:851)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]java.lang.Thread.sleep(NativeMethod)java.lang.Thread.sleep(Thread.java:851)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]java.net.PlainSocketImpl.socketConnect(NativeMethod)java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)java.net.Socket.connect(Socket.java:539)java.net.Socket.connect(Socket.java:488)java.net.Socket.<init>(Socket.java:385)java.net.Socket.<init>(Socket.java:199)oracle.net.nt.TcpNTAdapter.connect(UnknownSource)oracle.net.nt.ConnOption.connect(UnknownSource)oracle.net.nt.ConnStrategy.execute(UnknownSource)oracle.net.resolver.AddrResolution.resolveAndExecute(UnknownSource)oracle.net.ns.NSProtocol.establishConnection(UnknownSource)oracle.net.ns.NSProtocol.connect(UnknownSource)oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:844)oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:268)oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)>问题已经贴在上面了,在windows下没有问题,放到服务器上就出现问题了
解决方案
解决方案二:
并发的问题...连接泛滥或者死锁拉..