llms.txt: machine-readable documentation index. Markdown version of this page is also available.

YouTrack Server 2026.3 Help

Configure JVM Options

YouTrack Server runs YouTrack and built-in Hub in one JVM. Configure JVM options in the host directory mapped to the container's conf directory.

The launcher applies options in the following order. For settings with repeated values, the last value wins:

  1. Packaged defaults.

  2. JAVA_OPTS.

  3. conf/youtrack.jvmoptions, if it exists.

  4. JETBRAINS_YOUTRACK_OPTS, for the current run.

A JVM system property specified with -D takes precedence over the environment variable for the same setting. See Configuration Parameters.

Update JVM Options on a Persistent Basis

Update JVM Options Manually

conf/youtrack.jvmoptions is a standard Java argument file. Write options directly, without JetLauncher prefixes or option-removal syntax. YouTrack does not create or read a youtrack.jvmoptions.dist file.

To update JVM options:

  1. Stop the container.

  2. Open youtrack.jvmoptions in the host directory mapped to /opt/youtrack/conf (C:/opt/youtrack/conf for Windows containers). Create the file if it does not exist. Keep existing deployment settings, including the base URL.

  3. Add or change the required options, one per line. For example:

    -Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dstatistics-upload=true

    For argument-file quoting rules, see the Java documentation.

  4. Start the container:

    docker start <containerId>

Update JVM Options Temporarily

Add -e JETBRAINS_YOUTRACK_OPTS="<JVM options>" before the image name in your docker run command. Use all four persistent mounts and the port mappings from your deployment. For example, -e JETBRAINS_YOUTRACK_OPTS="-Xmx4g -XX:+HeapDumpOnOutOfMemoryError".

The options do not change the file. Docker retains environment variables in the container configuration, so subsequent starts of that container also use them. To return to the persistent settings, recreate the container without the override.

Check JVM Options

Check the startup configuration and the memory values on the Server Metrics page. The distribution no longer provides launcher commands for listing or modifying JVM options.

Default JVM Options

Setting

Default

Maximum heap

-XX:MaxRAMPercentage=50

Maximum Metaspace

-XX:MaxMetaspaceSize=500m

The JVM sizes the heap once at startup. On Linux, it uses 50% of the container memory limit, or host memory when there is no limit. An explicit -Xmx overrides percentage sizing. YouTrack does not automatically increase the heap as the database grows. To increase memory, change the container memory limit or -Xmx and restart.

Leave at least 1.5 GB outside the heap for Metaspace, threads, garbage collection, and native libraries. With text recognition enabled, leave at least another 2 GB. For example, with --memory 8g and text recognition enabled, use -Xmx4g or lower.

Windows Container Memory

Set a container limit with --memory in both isolation modes:

  • With process isolation, Java 21 sizes the heap from host memory and ignores the container limit. Set an explicit -Xmx below the limit, leaving the reserves described above.

  • With Hyper-V isolation, the heap follows the virtual machine memory limit. Without --memory, the virtual machine and heap are small.

Windows system processes also count against the limit, so Windows can require a larger reserve. A migrated -Xmx remains active in either mode. Check it against the container limit after upgrading.

19 November 2026