• c3p0死锁


    1.APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!

    抛出以下异常信息:

    com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@13067b2 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
    com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@13067b2 -- APPARENT DEADLOCK!!! Complete Status: 
    Managed Threads: 3
    Active Threads: 3
    Active Tasks: 
    com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@e1162c
    on thread: C3P0PooledConnectionPoolManager[identityToken->1hge1609q1ypllh31mmx1xh|c15b9e]-HelperThread-#1
    com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@73e33a
    on thread: C3P0PooledConnectionPoolManager[identityToken->1hge1609q1ypllh31mmx1xh|c15b9e]-HelperThread-#2
    com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@1b5de8b
    on thread: C3P0PooledConnectionPoolManager[identityToken->1hge1609q1ypllh31mmx1xh|c15b9e]-HelperThread-#0
    Pending Tasks: 
    com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@16a448b
    com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@1ba2754
    Pool thread stack traces:
    Thread[C3P0PooledConnectionPoolManager[identityToken->1hge1609q1ypllh31mmx1xh|c15b9e]-HelperThread-#1,5,main]
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:150)
    java.net.SocketInputStream.read(SocketInputStream.java:121)
    oracle.net.ns.Packet.receive(Packet.java:282)
    oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
    oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:172)
    com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
    com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
    com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:200)
    com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1127)
    com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1114)
    com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:44)
    com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1855)
    com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
    Thread[C3P0PooledConnectionPoolManager[identityToken->1hge1609q1ypllh31mmx1xh|c15b9e]-HelperThread-#2,5,main]
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:150)
    java.net.SocketInputStream.read(SocketInputStream.java:121)
    oracle.net.ns.Packet.receive(Packet.java:282)
    oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
    oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:172)
    com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
    com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
    com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:200)
    com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1127)
    com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1114)
    com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:44)
    com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1855)
    com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
    Thread[C3P0PooledConnectionPoolManager[identityToken->1hge1609q1ypllh31mmx1xh|c15b9e]-HelperThread-#0,5,main]
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:150)
    java.net.SocketInputStream.read(SocketInputStream.java:121)
    oracle.net.ns.Packet.receive(Packet.java:282)
    oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
    oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:172)
    com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
    com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
    com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:200)
    com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1127)
    com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1114)
    com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:44)
    com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1855)
    com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
    View Code
  • 相关阅读:
    .NET应用架构设计—表模块模式与事务脚本模式的代码编写
    .NET应用架构设计—重新认识分层架构(现代企业级应用分层架构核心设计要素)
    .NET应用架构设计—面向对象分析与设计四色原型模式(彩色建模、领域无关模型)(概念版)
    .NET应用架构设计—服务端开发多线程使用小结(多线程使用常识)
    .NET系列文章——近一年文章分类整理,方便各位博友们查询学习
    .NET应用架构设计—面向查询的领域驱动设计实践(调整传统三层架构,外加维护型的业务开关)
    .NET应用架构设计—面向查询服务的参数化查询设计(分解业务点,单独配置各自的数据查询契约)
    .NET/ASP.NETMVC 大型站点架构设计—迁移Model元数据设置项(自定义元数据提供程序)
    .NET/ASP.NETMVC 深入剖析 Model元数据、HtmlHelper、自定义模板、模板的装饰者模式(三)
    .NET/ASP.NETMVC 深入剖析 Model元数据、HtmlHelper、自定义模板、模板的装饰者模式(二)
  • 原文地址:https://www.cnblogs.com/jiktiv123/p/7640757.html
Copyright © 2020-2023  润新知