Error occured when VM initialization while running play frame work project

288 Views Asked by At

Hi all am trying to create play project after creating a project i got a error for JVM

while type play run myproject (runs within my project) it shows

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I got some answers from SO for this issue i changed the memory settings for JVM followed by this link to set memory space for JVM i added -Xmx512m to java but still its showing the same problem.

1

There are 1 best solutions below

0
On

Maybe you should change the VM settings located in /framework/build.bat.

The default value of Xmx was 1024M and the error disappeared after I changed it to 784M.

Hope this helps.