GoLand 2025.1 Help

Performance tuning tips

This article provides an overview of techniques to help improve GoLand performance when working with large-scale projects.

Increase memory heap

Enable memory indicator

To determine whether performance issues are caused by low heap memory, enable the memory indicator:

  • Right-click the status bar and select Memory Indicator.

The memory indicator will appear in the bottom-right corner:

Memory indicator

Increase memory heap

  1. Select Help | Change Memory Settings from the main menu.

  2. In the dialog that opens, set a higher memory heap value in the Maximum Heap Size field.

  3. Click Save and Restart.

Increasing heap in the Change Memory Settings dialog

Adjust -Xmx

To increase the memory heap, you can change the -Xmx option, which sets the maximum heap size for the JVM:

  1. In the main menu, go to Help | Edit Custom VM Options. This action creates a copy of the .vmoptions file in the IDE configuration directory and opens it in the editor.

  2. Update the -Xmx value. For example, use -Xmx4096m to allocate 4 GB of memory instead of the default 2 GB.

  3. Restart GoLand to apply the changes.

    Adjust -Xmx

If the amount of free heap memory drops below 5% of the maximum heap size, a warning will appear. To adjust the -Xmx value, click Configure in the Memory Settings dialog.

Low memory warning

Speed up code analysis

Enable Power Save mode

You can enable Power Save Mode or battery efficiency mode using one of the following options:

  • As an alternative to disabling individual checks or files one by one, try using Power Save Mode. This mode disables all inspections and other resource-intensive background tasks across the entire IDE.

    To enable Power Save Mode, go to File | Power Save Mode.

    Power Save Mode enabled
  • Right-click the status bar and select Power Save Mode. The Power Save Mode icon Power Save Mode icon will appear on the status bar.

    Enable Power Save Mode from the status bar

Speed up indexing

Exclude directories and file types

  • Your project may include folders with binaries, logs, or build artifacts that do not affect GoLand code insight. Indexing such folders can also be resource-intensive due to their size or location. In these cases, it is reasonable to exclude the folders manually: right-click the directory in the project tree and select Mark Directory as | Excluded.

    Once files are excluded, their symbols are no longer available to GoLand. The following features will be disabled for excluded files: code completion, auto-import, code generation, Find in Files (except in open files), navigation, and refactoring.

  • You can also exclude files such as logs or generated data by file type. To do so, go to Settings | Editor | File Types and add the pattern to the list of ignored file types:

    Ignored file types

Report performance problems

If you experience an IDE freeze or high CPU or memory usage, and the tips listed above do not help, please provide us with the IDE logs, thread dumps, and performance snapshots. For details on how to collect and send this information, refer to Report performance issues.

Last modified: 27 March 2025