Reputation: 2301
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 ???
Upvotes: 0
Views: 3071
Reputation: 1
Pasting the following on the command line solved it for me as I could not find that option in the startGrails file. set GRAILS_OPTS=-Xmx1024M -server But i know i have to do that anytime i have memory issues.
Upvotes: 0
Reputation: 65
_JAVA_OPTIONS
.-Xmx512M
.Upvotes: 0
Reputation: 139
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
Upvotes: 2