Grails Programmer : Increase Heap Space when running run-app in Grails 3 app

I recently need too increase my heap space while executing

grails run-app

The solution was, as many times, in stack overflow

Add to your build.gradle

bootRun {
    jvmArgs = ['-Xmx2048m']
}

If you want to run a gradle task with a lot of memory you can also do:

export GRADLE_OPTS=-Xmx6144m
gradle -Dgrails.env=dev yourCrazyGradleTask

One thought on “Grails Programmer : Increase Heap Space when running run-app in Grails 3 app

  1. Mark

    You (and whoever posted this on SO) are the hero(s) Grails needs. Why is this not in the documentation?

    Thank you!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *