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

YarnShuffleService leads to NodeManager OOM because ChannelOutboundBuffer has too many entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.3.0
    • None
    • Shuffle, Spark Core

    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. dominator.jpg
          652 kB
          Jiandan Yang
        2. histo.jpg
          436 kB
          Jiandan Yang
        3. Screen Shot 2019-10-25 at 17.24.10.png
          223 kB
          Anton Ippolitov

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: