problem while starting grails application

When i try to start my application it gives the error

Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.

Any suggestions ???


Step 1: Got to Grails HOME/bin directory open startGrails file

Step 2: replace that if condtion for GRAILS_OPTS and out this line "set GRAILS_OPTS=-Xmx1024M -server"

without quotes

Step 3: Save


Grails is a real memory hog. Make sure -Xms is large enough (at least 1024M or larger)

export JAVA_OPTS="-XX:MaxPermSize=1024m -Xmx1024M -server"

Refer to this other stack overflow thread Increase Xmx and Xms for grails run-app


  • Open the Control Panel.
  • Go to System.
  • Go to Advanced Systems Properties.
  • Then Environment Variables.
  • In System Variables, click Add.
  • New Variable Name: _JAVA_OPTIONS .
  • New Variable Value: -Xmx512M .
  • Click OK.
  • 链接地址: http://www.djcxy.com/p/82956.html

    上一篇: Android Libgdx无法为1536000KB对象堆预留足够的空间

    下一篇: 问题,而开始Grails应用程序