The start script <install-path>/android-studio/bin/studio.sh
does consult the files as follows to read configurations.
For 64bit systems:
<install-path>/android-studio/bin/studio64.vmoptions${HOME}/.AndroidStudio<version>/config/studio64.vmoptions<install-path>/android-studio.vmoptions
For 32bit systems:
<install-path>/android-studio/bin/studio.vmoptions${HOME}/.AndroidStudio<version>/config/studio.vmoptions<install-path>/android-studio.vmoptions
Depending on your architecture 32bit vs 64bit and how you did change the heap size setting, you can look through the files mentioned above and alter the Xmx
with a text editor of your choice.