Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5841

Memory leak in DiskBlockManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.3.0
    • Block Manager, Spark Core
    • None

    Description

      DiskBlockManager registers a Runtime shutdown hook, which creates a hard reference to the entire Driver ActorSystem. If a long-running JVM repeatedly creates and destroys SparkContext instances, it leaks memory.

      I suggest we deregister the shutdown hook if DiskBlockManager.stop is called. It's redundant at that point.

      PR coming.

      See also http://mail-archives.apache.org/mod_mbox/spark-user/201501.mbox/%3CCA+kjH+w_DDTEBE9XB6NrPxLTUXD=NC_d-3ogxTUMk_5v-E0bLQ@mail.gmail.com%3E

      Attachments

        Issue Links

          Activity

            People

              matt.whelan Matt Whelan
              matt.whelan Matt Whelan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: