Increase JVM heap size on macOS

Does anyone know how to increase the java heap space on Mac? On windows, increasing _JAVA_OPTIONS environment variable working, however every time I’ve tried increasing it on Mac, Solar2d says:

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

and doesn’t seem to want to pick up on any of the heap space arguments. It’s causing my Android build to fail on my larger projects, anyone have any luck with this?