Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1971

Cycling a channel results in leftover timer threads

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.7
    • None
    • None

      When a channel is cycled a few times in the same process (creating a channel and calling destroy() on it, there are leftover timer thread.
      The reason is that the timer thread pool uses LazyThreadFactory, which keeps a list of threads to potentially rename them at runtime. The element are weak references to threads, but because we don't run out of memory, those refs are never garbage-collected.
      SOLUTION: add a method destroy() to ThreadFactory, and LazyThreadFactory would simply clear the list when called.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: