Reputation: 7711
I just upgraded my IntelliJ to 14.0.3. But there's always an Out Of Memory dialog popped up to ask me to set the memory.
Following is my settings:
I thought it's enough. But the dialog shows from time to time, and sometimes, it's not responding that I have to shutdown it.
How should I set this for IntelliJ 14? Any ideas?
Upvotes: 43
Views: 54842
Reputation: 8608
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.
Upvotes: 58
Reputation: 2165
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:
Upvotes: 4
Reputation: 3008
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
Upvotes: 10
Reputation: 19001
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).
Upvotes: 1
Reputation: 12541
If you still see this popup frequently even with high memory allocated, try:
File > Invalidate Caches / Restart...
Upvotes: 1