flink 一个节点TaskManagers启动失败
·
去当前节点查看Log 日志:
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c6600000, 966787072, 0) failed; error=‘Cannot allocate memory’ (errno=12)
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 966787072 bytes for committing reserved memory.
原因:是因为运行可用 900多M 的内存,而机器配置TaskManagers堆内存是1G,剩余可用的只有几十兆,
所以内存不足导致无法启动
解决办法:
需要修改conf/flink-conf.yml,默认job.manager.heap.mb: 1024,taskmanager.heap.mb: 1024,将他们均改为512。
#The heap size for the JobManager JVM
jobmanager.heap.mb: 512m
#The heap size for the TaskManager JVM
taskmanager.heap.mb: 512m
更多推荐
所有评论(0)