Reputation: 285
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:
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)JAVA_OPTIONS
in Environment Variables: Made IntelliJ crash on startup or freeze without using more memory than before.1512M
, same heap size problem*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.
Upvotes: 6
Views: 13398
Reputation: 51
What worked for me was the following:
Doing only 1) or 3) but not both didn't work for me.
Upvotes: 5
Reputation: 31
Adding -Xmx10000M option to the bellow location worked for me: "Intellinj Idea -> Run -> Edit Configuration -> Modify Options -> Add VM Option"
Upvotes: 3
Reputation: 97133
To specify the memory used by the app, specify the needed -Xmx option in the "VM options" field of the run configuration you use to start the app from IntelliJ IDEA.
Upvotes: 1