How to give more memory to IntelliJ Idea 9-11

前端 未结 7 1843
生来不讨喜
生来不讨喜 2021-01-31 14:23

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 s

相关标签:
7条回答
  • 2021-01-31 14:33

    Edit the following file:

    idea/bin/idea.vmoptions
    
    0 讨论(0)
  • 2021-01-31 14:35

    On the MacOS find the folder where Idea is installed. then open file

    Contents/Info.plist
    

    Go all the way to the bottom and find the section that looks like this:

    <key>VMOptions</key> <string>-Xms64m -Xmx512m -XX:MaxPermSize=128m -Xbootclasspath/p:
    
    0 讨论(0)
  • 2021-01-31 14:43

    For Windows, in your IntelliJ Idea folder modify idea.exe.vmoptions.

    See http://blogs.jetbrains.com/idea/2006/04/configuring-intellij-idea-vm-options/

    0 讨论(0)
  • 2021-01-31 14:44

    go to that path "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\bin\idea.exe.vmoptions" and change size to -Xmx512m

    -Xms128m
    -Xmx512m
    -XX:MaxPermSize=250m
    -XX:ReservedCodeCacheSize=64m
    -XX:+UseCodeCacheFlushing
    -ea
    -Dsun.io.useCanonCaches=false
    -Djava.net.preferIPv4Stack=true
    

    hope its will work

    0 讨论(0)
  • 2021-01-31 14:45

    If you are using:

    • Ubuntu
    • 64 bit hardware

    then you need to create idea64.vmoptions by simply copying the options from idea.vmoptions file

    cat idea.vmoptions > idea64.vmoptions
    

    The parameters remain the same: -Xmx1024M -Xms512M

    0 讨论(0)
  • 2021-01-31 14:48

    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

    0 讨论(0)
提交回复
热议问题