Skip to content

Increase maximum heap space in IntelliJ

Sum Yin Chuang edited this page Feb 17, 2021 · 3 revisions

Step 1. Open IntelliJ

Step 2. Open Run / Debug Configuration Dialog and click Edit Configuration image

Step 3. Click the modify options and make sure the VM options is checked image

Step 4. Make sure there is a VM Options bar in the configuration image

Step 5. In the VM Options bar key in -Xmx3G, and click OK. NOTE: -Xmx3G means allocated maximum 3G of heap space to JVM. You can modify it accordingly image

Step 6. Run the program.