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

Listener leaking and produce OOM error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 9.4.20.Final
    • 9.4.19.Final
    • Server
    • None

      Register Listener will end up in a OutOfMemory error because it is never unregistered.
      A Listener will be added per client connection and never removed.
      Here TransactionRequestProcessor has a bug.

      HeapDump analysis will show

      java.lang.Thread @ 0x760886888 timeout-thread--p3-t1 Native Stack, Thread
      '- <Java Local> java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue @ 0x76088ab00
      '- queue java.util.concurrent.RunnableScheduledFuture[24] @ 0x760ec5ef0
      '- [0] java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask @ 0x7617bde40
      '- callable java.util.concurrent.Executors$RunnableAdapter @ 0x7618b76c0
      '- task org.infinispan.transaction.impl.TransactionTable$$Lambda$692 @ 0x7618b76d8
      '- arg$1 org.infinispan.transaction.impl.TransactionTable @ 0x761617028
      '- cacheManagerNotifier org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl @ 0x760f67878
      '- cacheStoppedListeners java.util.concurrent.CopyOnWriteArrayList @ 0x762068998
      '- array java.lang.Object[647063] @ 0x7951cb888

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: