OpenJDK Client VM - Cannot allocate memory
make sure you have swap
space on your machine
ubuntu@VM-ubuntu:~$ free -m total used free shared buffers cachedMem: 994 928 65 0 1 48-/+ buffers/cache: 878 115Swap: 4095 1086 3009
notice the Swap
line.
I just encountered this problem on an Elastic Computing instance. Turned out swap space is not mounted by default.
There can be a container memory overflow with the parameters that you are using for the JVM
Check if the attributes:
yarn.nodemanager.resource.memory-mbyarn.scheduler.minimum-allocation-mbyarn.scheduler.maximum-allocation-mb
on yarn.xml matches the desired value.
For more memory reference, read the:
Note: This is for Hadoop 2.0, if you are running hadoop 1.0 check the Task attributes.