I have an IntelliJ project with a run configuration that does openmrs-sdk:run and passes VM options for Xmx, etc. I’m pretty sure I set it up this way because @raff suggested it.
So…maybe you can pass them at the command line, or else via a run configuration in the IDE.