How should I set the memory for IntelliJ 14?

后端 未结 5 677
栀梦
栀梦 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:36

    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

    0 讨论(0)
  • 2021-02-01 14:38

    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:

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

    VM Options in the Run/Debug Configuration:

    0 讨论(0)
  • 2021-02-01 14:40

    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).

    0 讨论(0)
  • 2021-02-01 14:41

    If you still see this popup frequently even with high memory allocated, try:

    File > Invalidate Caches / Restart...

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

    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.

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