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?
This seems to do the trick in build.gradle:
bootRun {
jvmArgs = ['-Xmx2048m']
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With