]
ted won updated ISPN-7246:
--------------------------
Bugzilla References:
Memory leak with LIRS eviction strategy
---------------------------------------
Key: ISPN-7246
URL:
https://issues.jboss.org/browse/ISPN-7246
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 8.2.5.Final
Environment: * Infinispan 8.2.5.Final Library mode
* LIRS eviction strategy
Reporter: ted won
Labels: core, eviction, leak, lirs, strategy
Attachments: reproducer.zip
There is a memory leak with the default eviction strategy. It's a leak in
org.infinispan.commons.util.concurrent.jdk8backported.BoundedEquivalentConcurrentHashMapV8
with LIRS eviction strategy.
There are cache entries in org.infinispan.container.DefaultDataContainer.entries and its
size are bigger than cache size after eviction occurred.
DefaultDataContainer.entries retain keys and values for evicted entries in the cache.
After full GC, DefaultDataContainer.entries size wasn't changed.
The following minimum reproducer exhibits a leak. Eviction is supposed to suppress OOME.