CLion 2019.1 Help

Increasing Memory Heap

The Java Virtual Machine (JVM) running CLion allocates some predefined amount of memory. The default value depends on the platform. If you are experiencing slowdowns, you may want to increase the memory heap using the corresponding JVM option. See Configuring JVM options for more information.

  1. On the Help menu, click Edit Custom VM Options.

  2. Set the -Xmx option to a higher value and restart CLion.

CLion also warns you if the amount of free heap memory after a garbage collection is less than 5% of the maximum heap size:

low memory warning

Click Configure to increase the amount of memory allocated by the JVM:

change Xmx in memory settings dialog

Click Save and Restart and wait for CLion to restart with the new memory heap setting.

Last modified: 24 July 2019