]
Sanne Grinovero updated ISPN-6375:
----------------------------------
Status: Open (was: New)
Metaspace memory leak with infinispan
-------------------------------------
Key: ISPN-6375
URL:
https://issues.jboss.org/browse/ISPN-6375
Project: Infinispan
Issue Type: Feature Request
Components: Core
Affects Versions: 8.1.2.Final
Reporter: Andrej Dmitrenko
Attachments: memory-analyzer.png
I use infinispan for embedded cache and criteria query in cache. It is works great!
I start infinispan in my application and call embeddedCacheManager.stop() at application
destroy.
I run my application in oracle weblogic 12.1.3 server. And after redeploy my application
I see metaspace memory leak.
I have checked heap dump in memory analizer.
The cause in thread local variable threadCounterHashCode in
org.infinispan.commons.util.concurrent.jdk8backported.EquivalentConcurrentHashMapV8$CounterHashCode
class
After undeploy aplication there is a thread which keep thread local reference to
threadCounterHashCode, and threadCounterHashCode keep link to classloader and that's
why classloader cannot be removed from metaspace memory.
I cannot control this thread.
I have got suggestion in forum to create ticket in JIRA
(
https://developer.jboss.org/message/952848)
Please do something with class
org.infinispan.commons.util.concurrent.jdk8backported.EquivalentConcurrentHashMapV8$CounterHashCode
to avoid metaspace memory leak in cases when user does not control thread pool