To configure System Properties in Linux installations: To Configure System Properties in Windows Installations When Starting from the .bat File: There are two ways to configure system properties when you Start Confluence Automatically on Windows as a Service, either via command line or in the Windows Registry To set properties for Windows services via a command line: In some versions of Windows, there is no option to add Java variables to the service. In these cases, you must add the properties by viewing the option list in the registry. If you've used the Quick Start or CloudFormation template to deploy Confluence Data Center in AWS, you will pass system properties via the Cloud Formation Template, and not using the methods described above. Under Advanced, enter system properties in the Catalina Properties field as follows: Linux
<installation-directory>/bin/setenv.sh
file.
(this is JAVA_OPTS= in Confluence 5.5 and earlier) Add all parameters in a space-separated list, inside the quotations.
Windows (starting from .bat file)
<installation-directory>/bin/setenv.bat
file.
(this is JAVA_OPTS=%JAVA_OPTS% in Confluence 5.5 and earlier) Add all parameters in a space-separated list. Make sure to keep the string %CATALINA_OPTS% in place.
Windows service
Setting properties for Windows services via command line
In the above example, the service name is Confluence121213135538.
cd
to the bin
directory of your Confluence instance and run the following command:tomcat8w //ES//<SERVICENAME>
In the above example, it would be
tomcat8w //ES//Confluence121213135538
The Tomcat version number may be different if you are using an earlier version of Confluence. Java
tab to see the list of current start-up options:Setting properties for Windows services via the Windows registry
HKEY_LOCAL_MACHINE >> SOFTWARE >> Apache Software Foundation >> Procrun 2.0 >> Confluence service name
Confluence Data Center deployed in AWS
-Xms1024m -Xmx1024m -Dsystemproperty=value
Verifying your settings
To see what Confluence is using, check Viewing System Properties.
Recognized system properties
See Recognized System Properties for the full list of system properties available to your Confluence version.