This page describes how to set Java properties and options on startup for Confluence Stand-alone and EAR/WAR versions. |
On this page:
Linux
- From
<confluence-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.sh.
- Find the section JAVA_OPTS=
- Refer to the list of parameters below.
Add all parameters in a space-separated list, inside the quotations.
|
Windows (starting from .bat file)
- From
<confluence-install>/bin (Stand-alone) or <Tomcat-home>/bin (EAR-WAR installation), open setenv.bat.
- Find the section set JAVA_OPTS=%JAVA_OPTS%
- Refer to the list of parameters below.
Add all parameters in a space-separated list. Make sure to keep the string %JAVA_OPTS% in place.
|
Windows Service
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

Setting Properties for Windows Services via Command Line
- Identify the name of the service that Confluence is installed as in Windows (
Control Panel > Administrative Tools > Services ):

In the above example, the SERVICENAME is: JIRA030908110721. Find the Confluence equivalent.
- Open the command window from
Start >> Run >> type in 'cmd' >> Enter
cd to the bin directory of your Confluence Standalone instance, or the bin directory of your Tomcat installation if your are running Confluence EAR/WAR.
- Run:
tomcat6w //ES//%SERVICENAME%
|
.
In the above example, it would be tomcat6w //ES//JIRA030908110721

- Click on the
Java tab to see the list of current start-up options:

- Append any new option on its own new line by adding to the end of the existing Java Options. Refer to the list of parameters below.
|

Setting Properties for Windows Services via the Windows Registry
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.
- Go to {{Start >> Run, and run "regedit32.exe".

- Find the Services entry:
32-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Apache Software Foundation >> Procrun 2.0 >> Confluence
64-bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> Apache Software Foundation >> Procrun 2.0 >> Confluence

- To change existing properties, especially increasing Xmx memory, double-click the appropriate value.

- To change additional properties, double-click options.

- Refer to the list of parameters below. Enter each on a separate line.
|
Verifying Your Settings
To see what Confluence is using, check Viewing System Properties.

Recognised System Properties
RELATED TOPICS
Recognised System Properties
Fix Out of Memory Errors by Increasing Available Memory