Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6375

Metaspace memory leak with infinispan

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 8.1.2.Final
    • Fix Version/s: 9.0.0.Final
    • Component/s: Core
    • Labels:
      None

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  werdnx Andrej Dmitrenko
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: