How to increase the memory heap size on IntelliJ IDEA?

前端 未结 7 1428
半阙折子戏
半阙折子戏 2020-12-01 13:47

I want to allocate around 1GB of heap size, but I can\'t seem to figure it out.

How to do this?

7条回答
  •  鱼传尺愫
    2020-12-01 14:40

    For developers who use Ubuntu, following will help to increase heap size in InteliJ Idea. Following versions are used by myself at the moment.

    • Ubuntu 16.04 LTS (64 bit)

    • InteliJ IDEA 2016.3.4

    Go to the location where the IDE is installed and find the following file. (In my case it as follows)

    /home/abcde/Softwares/idea-IU-163.12024.16/bin
    

    Then select the idea64.vmoptions file and edit it.

    Remove default configuration and paste the below mentioned.

    -Xms512m
    -Xmx2024m
    -XX:MaxPermSize=700m
    -XX:ReservedCodeCacheSize=480m
    

    Now restart the IDE and changes should reflect the IDE environment.

    Worked for me to overcome Java heap size related issues.

提交回复
热议问题