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

YarnShuffleService leads to NodeManager OOM because ChannelOutboundBuffer has too many entries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: Shuffle
    • Labels:
      None

      Description

      NodeManager heap size is 4G, io.netty.channel.ChannelOutboundBuffer$Entry occupied about 2.8G by looking at Histogram of Mat, and those Entries were hold by ChannelOutboundBuffer by looking at dominator_tree of mat. By analyzing  one fo ChannelOutboundBuffer object, I found there were 248867 entries in the object of ChannelOutboundBuffer (ChannelOutboundBuffer#flushed=248867), and  ChannelOutboundBuffer#totalPengdingSize=23891232 which is more than highwaterMark(64K), and unwritable=1 meaning sending buffer was full.  But ChannelHandler seems not check unwritable flag when write message, and finally NodeManager occurs OOM.

      Histogram:

      dominator_tree:

       

        Attachments

        1. Screen Shot 2019-10-25 at 17.24.10.png
          223 kB
          Anton Ippolitov
        2. histo.jpg
          436 kB
          Jiandan Yang
        3. dominator.jpg
          652 kB
          Jiandan Yang

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yangjiandan Jiandan Yang
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: