Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give more memory to IntelliJ Idea 9-11

This concerns Intellij from 9 to 11. In the IDEA window On the bottom right corner I see the current memory usage, typically "224M of 254M" How do I give more memory to Idea so it may read like "224M of 512M" ?

Thank you.

like image 284
VijayKumar Avatar asked Mar 12 '10 20:03

VijayKumar


People also ask

How much memory should I give to IntelliJ?

IntelliJ IDEA memory usage Follow IntelliJ itself reports that it is using a little more than 1GB of heap but the OS reports that it is using anywhere from 3.5 to 4.5 GB.

Can I run IntelliJ on 4gb RAM?

2 GB RAM minimum, 4 GB RAM recommended. 1.5 hard disk space + at least 1 GB for caches. 1024x768 minimum screen resolution.


2 Answers

On Mac, $IDEA_HOME/Contents/Info.plist

 ~: grep --context=5 Xmx /Applications/Maia-IU-94.426.app/Contents/Info.plist              <string>true</string>             <key>apple.awt.fullscreencapturealldisplays</key>             <string>false</string>         </dict>         <key>VMOptions</key>         <string>-Xms128m -Xmx912m -Dfile.encoding=UTF-8 -XX:MaxPermSize=250m -ea -agentlib:yjpagent=disablej2ee,disablecounts,disablealloc,sessionname=IntelliJIdea90 -Xbootclasspath/a:../lib/boot.jar</string>         <key>WorkingDirectory</key>         <string>$APP_PACKAGE/bin</string>     </dict> </dict> </plist> 

On Windows/Linux, %IDEA_HOME%\bin\idea.vmoptions

like image 59
retronym Avatar answered Sep 22 '22 07:09

retronym


Edit the following file:

idea/bin/idea.vmoptions 
like image 25
armandino Avatar answered Sep 20 '22 07:09

armandino