I'm using IntelliJ 14.3 on x64 Java. Available memory: 10Gb (out of 16Gb total RAM)
(Basically set -Xmx8000M
or greater)
The problem is I need more than 4Gb memory to use for an App. I can not find any answer or solution to my problem and I've looked for days.
I've been looking on stackoverflow for people asking the same question, but they had problems with the default value -Xmx512M
and they kept linking to other answers, linking to another answer (waste of time and no solution so far).
I tried the following things that did not work:
- Modifying the
idea64.exe.vmoptions
file for IntelliJ: didn't seem to do anything, no error, no memory increase, nothing. (it seemed as it ignored the file) - Using
JAVA_OPTIONS
in Environment Variables: Made IntelliJ crash on startup or freeze without using more memory than before. - Tried it with a lower value, of
1512M
, same heap size problem - A fresh installation, even of the 15.x version of IntelliJ: nothing changed.
*Note:
someone at my workplace can set it in IntelliJ to work (but we can't figure out how
Running the class in command line with that
-Xmx8000M
seems to work, but I want to set it in IntelliJ for easy use
If anyone ran into this issue and can suggest solutions, I politely ask them to do so.