Unable to create a new Grails Project - could not reserve enough space
Answered
I am running IntelliJ 2016.2.5. I am trying to create a new Grails project.
If I go File > New > Grails Project.
Set my SDK home and my Grails SDK Home
Select Next.
Name the project
I then get an error stating:
Failed to sync Gradle project myProject
unable to start the daemon process: could not reserve enough space for object heap.
Please assign more memory...
So, I have added the line suggested
org.gradle.jvmargs=Xmx1024m.
Still the same error.
I even tried 2048 and still get the same error.
I am in a Grails class and need to figure this out as soon as possible.
Please sign in to leave a comment.
Try the below setting or switch to 64-bit Java. The issue can be caused by the too large heap size for a 32-bit process:
Serge,
Thanks for your suggestion.
I tried multiple values, 512m, 1024m, 2048m and this didn't help.
What finally worked is running IntelliJ as an administrator. If I do that, everything works fine.
Thanks, Chris