Memory Leak as weblogic.ejb.container.cache.EntityCache keeps holding EJB Entity Beans (Doc ID 1594852.1)

Last updated on JUNE 09, 2016

Applies to:

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

Symptoms

An EJB application is deployed into 10.3.5 Weblogic Server.
Memory heap size keeps growing when invoking this EJB application.
Taking Heap Dumps, the EJB  Entity Cache (weblogic.ejb.container.cache.EntityCache)
is holding memory as the following :

Class Name | Shallow Heap | Retained Heap | Percentage
------------------------------------------------------------------------------------------------------------------------------------------------
weblogic.ejb.container.cache.EntityCache @ 0x76a4f8358 | 64 | 475,761,496 | 23.47%
|- weblogic.ejb.container.cache.EntityCache$KeyData @ 0x770e6e940 | 48 | 260,670,320 | 12.86%
| '- weblogic.ejb.container.cache.EntityCache$Ring @ 0x770e6e970 | 24 | 260,670,272 | 12.86%
| |- weblogic.ejb.container.cache.EntityCache$BeanData @ 0x7a53a13d8 | 48 | 39,232 | 0.00%

EJB memory cache is never released.


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