stateful session beans 2.1 not garbage-collected after being removed from cache when using with beans.xml (Doc ID 1532364.1)

Last updated on JUNE 09, 2016

Applies to:

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


Stateful sessions beans 2.1 with a local interface are not garbage collected after they are removed from SFSB cache. When you monitor the EJB in WLS console, eventually the Cached Beans Current Count reaches 0, but the EJBs are still never garbage-collected. This is true even if we force GC using WLS console or visualvm.

with out beans.xml the referenced are gc'd
For the older version (where SFSBs are GC'd), the referencing classes are:


When there is beans.xml are not GC'd
For the new version (where SFSBs are not GC'd), the referencing classes are:



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