You can change the app's heap space by changing the launch configuration. You can add in the VM options the -Xmx7000m.
VM options
-Xmx7000m
The change you did before in the studio.vmoptions is for the IDE itself.
studio.vmoptions