Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2811

Thread leak when offheap memory is configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-incubating, 1.1.0, 1.1.1
    • 1.2.0
    • offheap

    Description

      If you are using offheap memory and keep creating and close the cache over and over then you may run out of threads.
      Each time the cache is initialized it creates a thread pool to handle offheap LRU eviction. The thread pool should be closed when the cache is closed but is not.

      The can lead to an exception like this:

      java.lang.OutOfMemoryError: unable to create new native thread

      The threads will be cleaned up if the garbage collector has a major enough collection to force java object finalization but that may never happen since offheap is being used.

      Attachments

        Activity

          People

            dschneider Darrel Schneider
            dschneider Darrel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: