JDBC Thin Driver Leaks Threads With Tomcat
Last updated on FEBRUARY 09, 2018
Applies to:JDBC - Version 126.96.36.199.0 and later
Information in this document applies to any platform.
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.
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