How should I set the memory for IntelliJ 14?

后端 未结 5 688
栀梦
栀梦 2021-02-01 13:56

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:

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 14:45

    Open Intellij IDE's vmoptions file

    For Mac Users

    Help | Edit Custom VM Options...

    or

    Library > Preferences > Idea > idea.vmoptions

    For Window (32bit) Users

    C:\Program Files (x86)\JetBrains\IntelliJ IDEA \bin\idea.exe.vmoptions

    For Window (64bit) Users

    C:\Program Files (x86)\JetBrains\IntelliJ IDEA \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.

提交回复
热议问题