Retained Heap By ReplicatedMemorySwap Instance Causing OutOfMemory Exceptions

(Doc ID 1500791.1)

Last updated on APRIL 04, 2018

Applies to:

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



An application consisting of EJB stateful beans is deployed into a  WLS cluster  (10.3.5 version).

This EJB Stateful  uses in-memory replication  with the following configuration :





 While invoking  the Stateful Session beans , slowly the Java Heap Memory  increase  . And, as a consequence,  OutOfMemoryError exceptions occur .

Heap Dumps show that  weblogic.ejb.container.swap.ReplicatedMemorySwap instance (previousVersionMap and secondaryBeanMap data fields)   related to the Stateful bean is retaining most of the memory. 


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