Fatal Robot Code Crash

Just out of curiosity, do you know how much memory the JVM should have available on a RIO 1. I don’t know how accurate this command is

Logger.getInstance().recordOutput("Memory Usage", (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1024.0 / 1024.0);

But I saw the code crash when it reached around 9 mb.

EDIT:
I’ve found it apparently to 64 mb from this line,

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

Would changing this be bad, or maybe altering heap size to try and make garbage collector run more often naturally?