My Oracle Support Banner

EntryProcessor Invocations Using More Memory in Coherence 3.7.1 Compared to Earlier Releases (Doc ID 1463402.1)

Last updated on FEBRUARY 27, 2024

Applies to:

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


A Coherence cluster and the applications using is are being migrated from Coherence 3.5.3 to  Some of the EntryProcessor operations the applications invoke are now encountering OutOfMemoryError exceptions which were not seen when using Coherence 3.5.3.

The application is processing the contents of two other caches, each of which contains 120 million entries and is combining the data to create a third cache, which is part of a different distributed service from the first two caches.

The application essentially invokes:

The EntryProcessor in the method iterates over the set passed to it by Coherence and extracts one field from each object and executes a second EntryProcessor which manipulates the objects in the third cache.  Since the two caches are part of different services the invocation of one EntryProcessor from the other is safe and does not introduce any chances of deadlock.

While doing this process the OutOfMemoryError exception is thrown.

Examining the heap reveals the following objects, only seen in the Coherence 3.7.1 heaps, consuming lots of memory:

Object ClassCountSize
PartitionedCache$Storage$EntryStatus 1.3M 126Mb
BMEventFabric$EventQueue 1.3M 76Mb
java.util.concurrent.locks.ReentrantLock$NonfairSync 1.3M 55Mb
java.util.concurrent.ConcurrentHashMap$HashEntry 1.3M 55Mb
java.util.concurrent.ConcurrentHashMap$HashEntry[] 4.2K 34Mb
RecyclingLinkedList$Node[] 15.8K 31Mb
java.util.concurrent.locks.ReentrantLock 1.3M 30Mb
CompositeKey 1.3M 40Mb








Only change was the upgrade from Coherence 3.5.3 to  No application changes had been made.


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.