My Oracle Support Banner

WebLogic Server Does Not Clean the Objects in ThreadLocal Automatically (Doc ID 1929223.1)

Last updated on JUNE 12, 2023

Applies to:

Oracle WebLogic Server - Version 10.3.5 and later
Information in this document applies to any platform.

Goal

WebLogic Server does not clean the objects set in ThreadLocal after a thread execution has completed. This causes a memory leak.

Below is a example of memory leak using the Eclipse Memory Analysis Tool (MAT):

1. Right click on the suspicious leaking object -> Path To GC -> With All Reference

2. The object is referred by the ThreadLocal object of ExecuteThread '19'

3. ExecuteThread '19' is not working on any request. It is idle.

Solution

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
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.