spark实战问题(一):is running beyond physical memory limits. Current usage: xx GB of xx GB physical memory
一:背景Spark 任务出现了container内存负载出现OOM二:问题Application application_xxx_xxxx failed 2 times due to AM Container for appattempt_xxxx_xxxx_xxxx exited with exitCode: -104Failing this attempt.Diagnostics: Conta
·
一:背景
Spark 任务出现了container内存负载出现OOM
二:问题
Application application_xxx_xxxx failed 2 times due to AM Container for appattempt_xxxx_xxxx_xxxx exited with exitCode: -104
Failing this attempt.Diagnostics: Container [pid=78835,containerID=container_e14_1611819047508_2623322_02_000003] is running beyond physical memory limits. Current usage: 6.6 GB of 6.6 GB physical memory used; 11.9 GB of 32.3 TB virtual memory used. Killing container.
Dump of the process-tree for container_e14_1611819047508_2623322_02_000003 :
|- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE
三、分析
1、Spark OOM主要出现方:Drive和Executor。
Driver:主要是collect、show等
Executor:主要是缓存RDD等
2、查看UI

4、内存简介
3、调整对应参数
executor-memory
num-executors
driver-memory
更多推荐
https://blog.csdn.net/congcong68/article/details/122274441
所有评论(0)