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
You (and whoever posted this on SO) are the hero(s) Grails needs. Why is this not in the documentation?
Thank you!