My Oracle Support Banner

OC4J Inactivity-Timeout Datasource Parameter Causes Deadlocks With JDBC Threads (Doc ID 1913545.1)

Last updated on FEBRUARY 14, 2018

Applies to:

JDBC - Version 10.2.0 to
Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.


Oracle Container for J2EE (OC4J) deployed applications can hang on JDBC database access.

Typical thread dump output shows that multiple application threads are waiting on a single JDBC thread, and that this thread is part of the OC4J inactivity timeout processing.

Threads which are typical of this problem look like this:

"Thread-16" daemon prio=1 tid=0x00002b82f0004010 nid=0x43e7 runnable [0x00002b82f6575000..0x00002b82f6575d90]
	at Method)
	at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(
	at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(
	at oracle.jdbc.driver.T4CTTIfun.receive(
	at oracle.jdbc.driver.T4CTTIfun.doRPC(
	at oracle.jdbc.driver.T4C7Ocommoncall.doOLOGOFF(
	at oracle.jdbc.driver.T4CConnection.logoff(
	- locked <0x00002b82454ce070> (a oracle.jdbc.driver.T4CConnection)
	at oracle.jdbc.driver.PhysicalConnection.close(
	- locked <0x00002b82454ce070> (a oracle.jdbc.driver.T4CConnection)
	at oracle.jdbc.pool.OraclePooledConnection.close(
	- locked <0x00002b82454c3130> (a oracle.jdbc.driver.T4CXAConnection)
	at oracle.jdbc.pool.OracleImplicitConnectionCache.actualPooledConnectionClose(
	at oracle.jdbc.pool.OracleImplicitConnectionCache.closeAndRemovePooledConnection(
	- locked <0x00002b8225d031c0> (a oracle.jdbc.pool.OracleImplicitConnectionCache)
	at oracle.jdbc.pool.OracleImplicitConnectionCache.processInactivityTimeout(
	at oracle.jdbc.pool.OracleImplicitConnectionCache.performPooledConnectionTask(
	at oracle.jdbc.pool.OracleImplicitConnectionCache.doForEveryCachedConnection(
	- locked <0x00002b8225d031c0> (a oracle.jdbc.pool.OracleImplicitConnectionCache)
	at oracle.jdbc.pool.OracleImplicitConnectionCacheThread.runInactivityTimeout(

If you see many other threads all waiting on resources locked by a thread similar to the one above, you are likely to be hitting this problem.

This issue has been seen with JDBC versions up to, and including


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.