My Oracle Support Banner

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 FEBRUARY 03, 2019

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:



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

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