ThreadLocal Refer to the CDI Bean Instances Leaks When Undeploy is Performed During Application Execution
Last updated on JANUARY 15, 2017
Applies to:Oracle WebLogic Server - Version 22.214.171.124.0 to 126.96.36.199.0 [Release 12c]
Information in this document applies to any platform.
If a web application is created with Contexts and Dependency Injection(CDI) Bean, and that web application is undeployed, then thread local still holds the reference to CDI Bean instances.
It is expected instead that the reference to CDI Beans will be deleted when the application is undeployed.
When the deploying and redeploying are repeated frequently, the reference to CDI Bean instances will increase gradually.
At last, it will cause major memory leak and Out Of Memory Error at worst case.
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