pri_dev
pri_dev

Reputation: 11655

grails run-app out of memory error

Hi I am trying to do grails run-app and I get this error during compilation

  [groovyc] The system is out of resources.
  [groovyc] Consult the following stack trace for details.
  [groovyc] java.lang.OutOfMemoryError: GC overhead limit exceeded

and then a bunch of stack trace I have java_opts set as:

set JAVA_OPTS="-Xmx4096m -XX:MaxPermSize=1024m -XX:MaxGCPauseMillis=10 -Dstringchararrayaccessor.disabled=true"

but still got the error then I unset this and set grails_opts with similar options

GRAILS_OPTS="-XX:MaxPermSize=1024m -Xmx4096M -server"

still getting the error. What is the setting to be done? I have 8 GB of total RAM in the system. Update: Once I set these variable I get an error from grails saying that

"-XX:MaxPermsize=1024M" was unexpected at this time.

Upvotes: 1

Views: 1764

Answers (1)

Destruktor
Destruktor

Reputation: 462

You need to remove the " from your command. IE:

set GRAILS_OPTS=-XX:MaxPermSize=1024m -Xmx4096M -server

Upvotes: 1

Related Questions