+-

我正在群集上运行Hadoop map reduce job.
我收到了这个错误.
我收到了这个错误.
OpenJDK Client VM warning: INFO: os::commit_memory(0x79f20000, 104861696, 0) failed; error=’Cannot allocate memory’ (errno=12)
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 104861696 bytes for committing reserved memory.
该怎么办 ?
最佳答案
确保您的机器上有交换空间
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
注意交换线.
我刚刚在Elastic Computing实例上遇到过这个问题.默认情况下不会挂载交换空间.
点击查看更多相关文章
转载注明原文:java – OpenJDK客户端VM – 无法分配内存 - 乐贴网