How to set system properties for Confluence running as a service on Windows

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When running Confluence as a Windows Service, it doesn't recognize the system properties in setenv.bat and instead loads them from Tomcat.

Solution

How to modify properties for a Windows Service:

  1. Identify the name of the service that Confluence is installed as in Windows ( Control Panel > Administrative Tools > Services ).

  2. Open a command prompt (Start >> Run, type in 'cmd' >> Enter).

  3. cd to the bin directory of your Confluence instance.

  4. Type and run the following (change tomcat9w to whatever version you are using):

    1 tomcat9w //ES//<Your_Service_Name>
  5. Click on the Java tab to see the list of current start-up options:

    1. You can set the initial and maximum memory heap allocation here via "initial/maximum memory pool."

    2. You can add System Properties to the Java Options field (one per line).

Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.