一:背景

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、内存简介

参考Spark (一):Executor内存_在前进的路上-CSDN博客一、背景 Spark是基于内存的分布式计算引擎,我们需对Executor内存管理的详细了解,方便我们遇到OOM解决问题、或者优化时更好调优,,Spark任务启动时有两个进程,分别为Driver、Executor进程,Driver进程(内存默认1G)可能在本地启动,也可能在集群中某个工作节点上启动(根据提交模式client、Cluster等)。Driver启动会申请资源(Executor),根据配置启动对应Executor数量,每个Executor进程都会对应一定数量的内存和CPU COR...https://blog.csdn.net/congcong68/article/details/122274441

3、调整对应参数

executor-memory
       num-executors
        driver-memory

												

spark实战问题(一):is running beyond physical memory limits. Current usage: xx GB of xx GB physical memory相关推荐

  1. is running beyond physical memory limits. Current usage: 2.0 GB of 2 GB physical memory used; 2.6 GB

    背景 执行一个kylin任务 然后报错 TaskAttempt killed because it ran on unusable nodekylin1.dtwave.dev.local:8041 C ...

  2. is running beyond physical memory limits. Current usage: 1.0 GB of 1 GB physical memory used......

    0.任务执行报错截图: 1.错误分析:显示物理内存和虚拟内存的占用情况 Container [pid=24845,containerID=container_1625047493764_0479_01 ...

  3. hive报错:running beyond physical memory limits. Current usage: 2.0 GB of 2 GB physica终极解决方式

    1.案例描述:         hive有个定时任务平时正常,没有啥问题,正常一般大概执行1个小时左右,但是今天突然报错了,报错代码::running beyond physical memory l ...

  4. is running beyond the ‘VIRTUAL‘ memory limit. Current usage: 123.5 MB of 1 GB physical memory used

    is running beyond the 'VIRTUAL' memory limit. Current usage: 123.5 MB of 1 GB physical memory used; ...

  5. beyond the ‘PHYSICAL‘ memory limit. Current usage: 1.0 GB of 1 GB physical memory used;

    腾讯云 hive3.1.1版本执行HQL时报如下错误 报错信息: Error while processing statement: FAILED: Execution Error, return c ...

  6. 【Hive】报错Container is running beyond physical memory limits.4.0 GB of 4 GB physical memory used

    最近碰到任务报错如下: Container [pid=105939,containerID=container_e03_1599034722009_11568264_01_000200] is run ...

  7. Container is running beyond physical memory limits

    1.Hive执行SQL语句,出现如下错误: Container is running beyond physical memory limits. Current usage: 4.3 GB of 4 ...

  8. 【Hadoop】运行MR任务,出现Container is running beyond physical memory limits错误

    运行一次任务,运行了很长时间,出现了 ***Container is running beyond physical memory limits***的错误. Container [pid=27842 ...

  9. hive任务优化-Current usage: 2.0 GB of 2 GB physical memory used; 4.0 GB of 16.2 GB virtual memory used.

    目录 错误背景 错误信息定位 client端日志 APPlication日志 map和reduce单个错误日志 错误分析 解决方案 1. 取消虚拟内存的检查(不建议): 2.增大mapreduce.m ...

最新文章

  1. Linux 磁盘挂载
  2. Jupyter Notebook使用教程
  3. 低耗时、高精度,微软提基于半监督学习的神经网络结构搜索算法
  4. 某程序员对比美团和阿里的卷文化区别:美团重过程,死抠没用细节;阿里更自由,注重结果!...
  5. java项目close wait_服务器TIME_WAIT和CLOSE_WAIT详解和解决办法
  6. MFC命令消息的路由
  7. [ExtJS5学习笔记]第十节 Extjs5新增特性之ViewModel和DataBinding
  8. ELK入门01—Elasticsearch安装
  9. 毕业大论文到底怎么写?
  10. EOS Keosd概述
  11. 力扣 26.删除有序数组中的重复元素
  12. js29--装饰着模式
  13. Qt环境搭建(Visual Studio)
  14. 认知计算、大数据及人工智能革命
  15. java 移动短代支付_运营商支付/短代支付的市场前景如何?
  16. 解决在uniapp项目中小程序调用获取微信绑定手机号
  17. 前端导出pdf以及导出内容截断的解决办法
  18. 牛掰了!鸿蒙与Android完美融合,将鸿蒙设备当Android设备用
  19. c++中exit()函数
  20. 知无涯者(The Man Who Knew Infinity)

热门文章

  1. Python还原CryptoJs_DES_CBC模式_js逆向学习
  2. 分解因数 java版
  3. 2017CVPR NID-SLAM:基于归一化信息距离的鲁棒单目SLAM系统
  4. 【SugerTangYL】UART串口通信 Verilog
  5. 电位器的主要参数有哪些?
  6. xShow@Home v5.1.20120908 发布
  7. Tushare学习文档(十 电影票房)
  8. 【Where和having的区别】条件语句where和having有什么不同?
  9. (转发)一个硕士生是如何发表5篇sci的
  10. windbg 断点+单步