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

Spark on Yarn External Shuffle Service Memory Leak

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.4.5, 3.0.0
    • Component/s: Shuffle, Spark Core
    • Labels:
      None
    • Environment:

      hadoop 2.7.3
      spark 2.4.3
      jdk 1.8.0_60

      Description

      In our large busy yarn cluster which deploy Spark external shuffle service as part of YARN NM aux service, we encountered OOM in some NMs.
      after i dump the heap memory and found there are some StremState objects still in heap, but the app which the StreamState belongs to is already finished.

      Here is some relate Figures:

      The heap dump below shows that the memory consumption mainly consists of two parts:
      (1) OneForOneStreamManager (4,429,796,424 (77.11%) bytes)
      (2) PoolChunk(occupy 1,059,201,712 (18.44%) bytes. )

      dig into the OneForOneStreamManager, there are some StreaStates still remained :

      incomming references to StreamState::associatedChannel:

        Attachments

          Activity

            People

            • Assignee:
              henriquedsg89 Henrique dos Santos Goulart
              Reporter:
              UncleHuang huangweiyi
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: