My Oracle Support Banner

JDBC Thin Driver Leaks Threads With Tomcat (Doc ID 1901449.1)

Last updated on MARCH 23, 2018

Applies to:

JDBC - Version 11.2.0.1.0 to 12.1.0.2.0 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Symptoms

Oracle JDBC Thin driver is deployed in Tomcat. When the web application is shut down, it experiences the following problems:

1) The OracleDiagnosabilityMBean is not de-registered
2) OracleTimeoutPollingThread does not stop
3) The following thread does not stop: oracle.jdbc.driver.BlockSource.ThreadedCachingBlockSource.BlockReleaser

All of these result in references to the webapp classloader to be pinned in memory, resulting in a classloader leak, excessive PermGen memory
consumption, and eventual application server failures (OutOfMemoryError - PermGen space), after some cycles of hot-redeployment of web application.

Cause

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.