ThreadLocal Refer to the CDI Bean Instances Leaks When Undeploy is Performed During Application Execution
(Doc ID 2096068.1)
Last updated on AUGUST 12, 2021
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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document