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

Metaspace memory leak with infinispan

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Obsolete
    • Major
    • 9.0.0.Final
    • 8.1.2.Final
    • Core
    • 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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              werdnx Andrej Dmitrenko (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: