In this we will try to increase the RAM size of the VM with the help of VMware Player.  By increasing the RAM size of the VM, we can overcome the problem of JAVA_HEAP space error.

Please follow the instructions given below that would help you in doing that.

1. Switch off the VM for which you want to increase the RAM Size 


Note: Here we are using the Cloudera VM to explain this.  Do not suspend the VM instead do power off  If you do not power off the VM, it will not allow to perform the step3.

2. Select that VM and Edit virtual machine settings as in the below screenshot.

3. Drag the pointer up to increase RAM size and click on ok  as in the below screenshot.

In this way,this would enable you to increase the RAM size of the VM.

If you face any issues, please feel free to revert.