美文网首页
Spark内存管理

Spark内存管理

作者: clive0x | 来源:发表于2019-06-17 23:39 被阅读0次

MemoryManager下两个子类:

1.UnifiedMemoryManager 2.StaticMemoryManager

默认使用UnifiedMemoryManager,execution memory和storage memory可以相互抢占。

配置参数:

Spark内存:spark.memory.fraction (0.6)(系统内存-300M resoved内存)*0.6

Storage占用内存。spark.memory.storageFraction (0.6)

开启offheap内存:spark.memory.offHeap.enabled

offheap内存大小设置:spark.memory.offHeap.size

相关文章

网友评论

      本文标题:Spark内存管理

      本文链接:https://www.haomeiwen.com/subject/gxmtqctx.html