Increasing Memory Heap
To prevent the build process from running out of memory, you can increase the amount of memory allocated to the process. By default, the memory heap is 128 MB, but for large projects you may need more.
In this section:
Increasing memory heap of the build process
- Open the Build File Properties dialog box.
- In the Maximum heap size field, type the required amount of memory.
Important notes
Please note the following:
The memory heap of the build process is independent of IntelliJ IDEA memory heap, and is released after the build process is complete.
The memory heap available to IntelliJ IDEA may be changed by editing the corresponding VM options.
To avoid editing files in the IntelliJ IDEA installation folder, do one of the following:
- From the main menu, choose
idea.vmoptions
file in the user home directory. to create a copy of the - Copy the existing file from the IntelliJ IDEA installation folder somewhere and save the path to this location in the
IDEA_VM_OPTIONS
environment variable (IDEA64_VM_OPTIONS
for 64 bit systems). - Copy the existing
<IntelliJ IDEA installation folder>/bin/idea.exe.vmoptions
or the<IntelliJ IDEA installation folder>/bin/idea64.exe.vmoptions
file from the IntelliJ IDEA installation folder into your user home directory.
Then edit this file in the new location.
If the IDEA_VM_OPTIONS
(IDEA64_VM_OPTIONS
for 64 bit systems) environment variable is defined, or the *.vmoptions
file exists, this file is used instead of the one located in the IntelliJ IDEA installation folder.