-
Enhancement
-
Resolution: Obsolete
-
Major
-
8.1.2.Final
-
None
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
- is caused by
-
ISPN-4390 CHMv8 leaks ThreadLocal
- Closed