OpenJDK客户端VM-无法分配内存 [英] OpenJDK Client VM - Cannot allocate memory
问题描述
我正在集群上运行Hadoop map reduce作业. 我收到此错误.
I am running Hadoop map reduce job on a cluster. I am getting this error.
OpenJDK客户端VM警告:信息:os :: commit_memory(0x79f20000,104861696,0)失败; error ='无法分配内存'(errno = 12)
OpenJDK Client VM warning: INFO: os::commit_memory(0x79f20000, 104861696, 0) failed; error='Cannot allocate memory' (errno=12)
没有足够的内存来使Java Runtime Environment继续运行.
There is insufficient memory for the Java Runtime Environment to continue.
本机内存分配(malloc)无法分配104861696字节来提交保留的内存.
Native memory allocation (malloc) failed to allocate 104861696 bytes for committing reserved memory.
做什么?
推荐答案
确保您的计算机上有swap
空间
make sure you have swap
space on your machine
ubuntu@VM-ubuntu:~$ free -m
total used free shared buffers cached
Mem: 994 928 65 0 1 48
-/+ buffers/cache: 878 115
Swap: 4095 1086 3009
注意Swap
行.
我刚在Elastic Computing实例上遇到此问题.原来交换空间默认情况下未安装.
I just encountered this problem on an Elastic Computing instance. Turned out swap space is not mounted by default.
这篇关于OpenJDK客户端VM-无法分配内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!