You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jiandan Yang (JIRA)" <ji...@apache.org> on 2019/08/15 10:02:00 UTC

[jira] [Updated] (SPARK-28743) YarnShuffleService leads to NodeManager OOM because ChannelOutboundBuffer has t0o many entries

     [ https://issues.apache.org/jira/browse/SPARK-28743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiandan Yang  updated SPARK-28743:
----------------------------------
    Summary: YarnShuffleService leads to NodeManager OOM because ChannelOutboundBuffer has t0o many entries  (was: YarnShuffleService leads to NodeManager OOM because ChannelOutboundBuffer has to many entry)

> YarnShuffleService leads to NodeManager OOM because ChannelOutboundBuffer has t0o many entries
> ----------------------------------------------------------------------------------------------
>
>                 Key: SPARK-28743
>                 URL: https://issues.apache.org/jira/browse/SPARK-28743
>             Project: Spark
>          Issue Type: Bug
>          Components: Shuffle
>    Affects Versions: 2.3.0
>            Reporter: Jiandan Yang 
>            Priority: Major
>         Attachments: dominator.jpg, histo.jpg
>
>
> 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:
> !histo.jpg!
> dominator_tree:
> !dominator.jpg!
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org