In most cases, a ratio between 2 and 4 is recommended.
Specifies the ratio between the size of the young and old generation of the heap. It is usually set to about half of the maximum allowed memory ( -Xmx), for example, -Xms1024m. The default value depends on the platform.
Specifies the initial memory allocated by the JVM for running IntelliJ IDEA. If you are experiencing slowdowns, you may want to increase this value, for example, to set the value to 2048 megabytes, change this option to -Xmx2048m.įor more information, see Increase the memory heap of the IDE. Limits the maximum memory heap size that the JVM can allocate for running IntelliJ IDEA. The following are the most commonly modified ones: The default values of the JVM options should be optimal in most cases. Use it only to check what are the default options that IntelliJ IDEA uses. If there are no JVM options files defined in the previous locations, IntelliJ IDEA will use the default JVM options file. If you are running a standalone IntelliJ IDEA instance, check the configuration directory. Under Configuration, find Java Virtual Machine options and click Edit. If the Toolbox App manages your current IntelliJ IDEA instance, open the Toolbox App, click next to the relevant IDE instance, and select Settings. If the specified file exists, it will override all other JVM options files. The location specified by the IDEA_VM_OPTIONS environment variable. If you are not sure where IntelliJ IDEA is getting its JVM options, check the following: Open the Toolbox App, click next to the relevant IDE instance, and select Settings. If you are using the Toolbox App, it manages the installation and configuration directory and lets you configure JVM options for every IDE instance. This file will override both the original default file and the copy located in the IntelliJ IDEA configuration directory. If you do not have write access to the IntelliJ IDEA configuration directory, you can add the IDEA_VM_OPTIONS environment variable to specify the location of the file with your preferred JVM options. If you cannot start IntelliJ IDEA, manually copy the default file with JVM options to the IntelliJ IDEA configuration directory. If you do not have any project open, on the Welcome screen, click Configure and then Edit Custom VM Options. Configure JVM optionsĭo one of the following to create a copy of the default file with JVM options in the configuration directory that will override the original file:įrom the main menu, select Help | Edit Custom VM Options. Moreover, in case of macOS, editing this file violates the application signature.
To create settings at design time is done using an interface under project My.Settings Object which provides access to application settings and allows a developer to dynamically store and retrieve property settings and other information for your application.