I just upgraded my IntelliJ to 14.0.3. But there\'s always a Out Of Memory dialog popped up to ask me to set the memory.
Following is my settings:
I have allocated 4 GB to intelliJ 14 on windows 7. My settings in idea64.exe.vmoptions are :
-Xms4608m
-Xmx4608m
-Xmn2g
-Xss128k
-XX:MaxPermSize=1536m
-XX:ParallelGCThreads=20
You can set IntelliJ IDEA's memory settings and your application's memory settings in the following places:
IDEA's vmoptions file:
Under Windows it could be either of the followings, depending on which installation (x86, x64) you use:
VM Options in the Run/Debug Configuration:
It really depends on the nature of the error. One thing to try is using idea64.exe instead of idea.exe.
If this doesn't help, please contact JetBrains by filing an issue to https://youtrack.jetbrains.com/newissue and attach your log there (Help | Show log).
If you still see this popup frequently even with high memory allocated, try:
File > Invalidate Caches / Restart...
Open Intellij IDE's vmoptions file
For Mac Users
Help | Edit Custom VM Options...
or
Library > Preferences > Idea<YourVersion> > idea.vmoptions
For Window (32bit) Users
C:\Program Files (x86)\JetBrains\IntelliJ IDEA <your_version>
\bin\idea.exe.vmoptions
For Window (64bit) Users
C:\Program Files (x86)\JetBrains\IntelliJ IDEA <your_version>
\bin\idea64.exe.vmoptions
and setup it's memory as you wish. Below is sample settings for 2GB
-Xms128m
-Xmx2048m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops
Hopefully this help.