Configure JVM Options
You can configure the properties and JVM options for your YouTrack instance. The YouTrack properties include various launch configuration settings. The JVM options let you manage behavioral, garbage collection, performance, and debugging options for your server.
For a complete list of YouTrack-specific configuration parameters, see Configuration Parameters.
Mandatory JVM Options
To run YouTrack, the following JVM options are required for all installations:
Maximum Metaspace memory
Maximum Java heap size
The following JVM options are not mandatory, but can improve the performance of your YouTrack installation:
Minimum Metaspace memory
Set JVM Options for a YouTrack JAR Installation
When you run YouTrack as a stand-alone Java process, set the JVM options in the command that you use to run YouTrack.
java -jar youtrack-xx.jar --J-Xmx1024m <port>
Set JVM Options
For MSI and ZIP installations, you can set JVM options in a command-line interface or manually edit the configuration file.
When you set a YouTrack property or JVM option, the property is applied on every server restart.
Set JVM Options from the Command Line
You can set properties and JVM options for your server with the
configure command. You can use this method for any type of YouTrack installations. To execute these commands in an MSI distribution, open the Command Prompt window as an administrator.
When you set JVM options from the command line, consider the following guidelines:
Always execute the
configurecommand on behalf of the OS user that runs the YouTrack service. This command creates configuration files and folders. The Hub service user should have sufficient permissions to access these files and folders.
To set the parameter for a JVM option, enter the
configurecommand with the prefix
-Jprefix signifies that a JVM option is declared after it. You must add the
-Jprefix to each JVM option that you want to configure.
To define an option that is passed to YouTrack by the JVM on start, use "-":
youtrack configure -J-<jvm.property>[=<value>]
youtrack configure -J-Dorg.eclipse.jetty.server.Request.maxFormKeys=10000
youtrack configure -J-Xmx1024m -J-XX:+HeapDumpOnOutOfMemoryError
To remove a JVM option, use "+":
youtrack configure -J+<jvm.property>[=<value>]
+D<property>=<value>remove the corresponding option only if it has exactly the same value.
youtrack configure -J+Dorg.eclipse.jetty.server.Request.maxFormKeys=10000
+D<property>remove the corresponding option regardless of the value.
youtrack configure -J+ea
To set a JVM option from the command line:
Set JVM Options Manually
You can configure JVM options manually by editing the
youtrack.jvmoptions file. This file is created automatically when you modify the default configuration. The location of the file depends on the distribution type of your YouTrack installation.
For a ZIP distribution, the file is located in the
<YouTrack installation directory>/confdirectory.
- For an MSI distribution the file is located in the
You can locate the path to the
conffolder in the
<YouTrack installation directory>\internal\conf\installation.xmlfile. The path is written to the property
default-appdata-root. For example:
If you have not changed the JVM options for your server, the directory contains a sample configuration file. The sample configuration file uses the
.dist extension and contains a list of default JVM options. If the file you want to edit does not exist:
Copy the youtrack.jvmoptions.dist file and save it as youtrack.jvmoptions
Create a youtrack.jvmoptions file in this directory and paste the contents of the sample configuration file into it.
You can then edit the contents of the file to configure the JVM options.