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

Last updated on OCTOBER 04, 2016

Applies to:

JDBC - Version 11.2.0.1.0 and later
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

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 hundreds of Community platforms