My Oracle Support Banner

Bean Objects Not Garbage Collected Even After The Bean Is Inactive More Than '@StatefulTimeout' (Doc ID 2864933.1)

Last updated on JUNE 13, 2023

Applies to:

Oracle WebLogic Server - Version to [Release 12c]
Information in this document applies to any platform.


Application creates instances of EJBSessionBeans which implements the interface javax.ejb.SessionBean.
The inactive timeout for the bean is set as @StatefulTimeout(unit = TimeUnit.MINUTES, value = <MINUTES>).
In Weblogic Admin Consoke, after the configured StatefulTimeout, 'Cached Beans Current Count' becomes 0.
But the objects still exists in the heap and does not get garbage-collected.


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.