Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails 3.0.x - how to increase heap space when using "grails run-app"

When executing "grails run-app" from the command line for a Grails 3.0.1 web application, I always get a maximum heap size of 768M, which seems to be the hardcoded default in the Grails Gradle plugin.

The settings in JAVA_OPTS or GRAILS_OPTS are not respected.

How can I let run-app use more heap space? Something to set in application.yaml or build.gradle?

like image 303
Michael B Avatar asked Apr 23 '15 02:04

Michael B


1 Answers

This seems to do the trick in build.gradle:

bootRun {
    jvmArgs = ['-Xmx2048m']
}
like image 172
Michael B Avatar answered Sep 27 '22 18:09

Michael B