0

我们遇到了 Wildfly 10.1.0 的问题,系统在打开或关闭连接时会阻塞。我们将其追溯到 CacheConnectionManagerImpl 类中的 ironjacamar 1.3.4 api。此代码仅在 debug=true 时执行,并且我们需要禁用调试,以便不执行代码。

我们是否将此标志设置为假?

<cached-connection-manager debug="true" error="true"/>

请参阅下面的堆栈跟踪..txs

"Thread-138" #1449 prio=5 os_prio=0 tid=0x0000000087634800 nid=0x2638 waiting for monitor entry [0x00000000a05ae000]
   java.lang.Thread.State: BLOCKED (on object monitor)
    at **org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManagerImpl.registerConnection(CachedConnectionManagerImpl.java:306)**
    - waiting to lock <0x0000000540f606f8> (a java.util.WeakHashMap)
    at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:777)
    at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:138)
    at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:66)
    at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
    at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35)
    at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:106)
    at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:136)
    at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.coordinateWork(JdbcCoordinatorImpl.java:318)
4

0 回答 0