Configuring System Properties
Windows (starting from .bat file)
To Configure System Properties in Windows Installations When Starting from the .bat File:
<Tomcat-home>/bin(EAR-WAR installation), open setenv.bat.
- Find the section set CATALINA_OPTS=%CATALINA_OPTS%
(this is set JAVA_OPTS=%JAVA_OPTS% in Confluence 5.5 and earlier)
- Refer to the list of parameters below.
Add all parameters in a space-separated list. Make sure to keep the string %CATALINA_OPTS% in place.
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
To set properties for Windows Services via a command line:
- Identify the name of the service that Confluence is installed as in Windows (Go to Control Panel > Administrative Tools > Services):
In the above example, the service name is Confluence121213135538.
- Open the command window (Choose Start > cmd.exe)
bindirectory of your Confluence instance (or the
bindirectory of your Tomcat installation if you are running Confluence EAR/WAR).
Run the following command:
In the above example, it would be
The Tomcat version number may be different if you are using an earlier version of Confluence.
- Click on the
Javatab 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 the Registry Editor (Start > regedit.exe).
- Find the Services entry:
HKEY_LOCAL_MACHINE >> SOFTWARE >> Apache Software Foundation >> Procrun 2.0 >> Confluence
HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> Apache Software Foundation >> Procrun 2.0 >> Confluence service name
- To change existing properties 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
By default, Confluence will only run its database schema update when it detects that it has been upgraded. This flag will force Confluence to perform the schema update on system startup.
Any filesystem path
Confluence and atlassian-config
If this system property is set, Confluence will ignore the contents of the
Enables additional debugging options that may be of use to Confluence developers (additionally it changes spring bean creation to use lazy initialization by default to decrease startup time). Do not enable this flag on a production system.
If set to "true", will prevent Confluence from retrieving mail for archiving within spaces. Manually triggering "check for new mail" via the web UI will still work. This property has no effect on outgoing mail
Setting this property will cause Confluence to reload its i18n resource bundles every time an internationalised string is looked up. This can be useful when testing translations, but will make Confluence run insanely slowly.
Confluence will normally log a severe error message if it detects that DEBUG level logging is enabled (as DEBUG logging generally causes a significant degradation in system performance). Setting this property will suppress the error message.
If set to "true", will disable Confluence's JMX monitoring. This has the same effect as setting the "enabled" property to false in
Number of index queue flushes before the index is optimised.
Starts confluence without bundled plugins. May be useful in a development environment to make Confluence start quicker, but since bundled plugins are necessary for some of Confluence's core functionality, this property should not be set on a production system.
|3.0||atlassian||Confluence stores the body of attachments in the index so the content of attachments are searchable. Set this property to set the maximum indexable size (in bytes).|
Limiting the size of attachment indexing decreases the size of the index when large attachments are present and prevents excerpts of large attachments being displayed in search results. It does not limit the size of attachments that can be uploaded.
Disables mail fetching services for IMAP and POP
Confluence and atlassian-mail
Disables sending of mail
Setting this property will disable conditional get and expires: headers on some web resources. This will significantly slow down the user experience, but is useful in devlopment if you are frequently changing static resources and don't want to continually flush your browser cache.
Setting this property forces the antixss encoding on or off, overriding the behaviour dictated by settings. The default behaviour differs between Confluence versions.
Comma-separated list of package names to provide from application for OSGi plugins. Typically required when profiling Confluence. For example: "com.jprofiler.,com.yourkit.".
Maximum number of concurrent diffs. When that number is exceeded, additional attempts by RSS feeds to create diffs are ignored and logged. (The RSS requests succeed, they are just missing diffs).
Number of milliseconds to wait for a diff operation (comparing two page versions) to complete before aborting with an error message.
|Confluence||Number of milliseconds to wait for a diff operation (comparing two page versions) to complete before aborting with an error message.|
Setting this property changes the relationship between local users and local groups to reduce performance degradation when adding a local user to a local group with a large number of users. Please note, setting this property can slow down other user management functions. We recommend that you set it only if you are experiencing performance problems when adding local users to large local groups. Please refer to CONF-12319, fixed in Confluence 3.1.1.
Setting this property changes Confluence to use the Experimental XML Importer. It is designed to be a more stable implementation but, at the time of the release of 3.2, the importer is largely untested and thus not supported.
Sets the number of threads to be used for the reindex job. The value has to be in the range of 1 to 50 (inclusive), i.e. at least one thread but no more than 50 threads will be used. There is no default value, i.e.
Note: For Confluence versions from 3.3 to 5.6 the maximum threads is 10.
Size of batches used by the indexer. Reducing this value will reduce the load that the indexer puts on the system, but indexing takes longer. Increasing this value will cause indexing to be completed faster, but puts a higher load on the system. Normally this setting does not need tuning.
This property disables the password confirmation functionality that Confluence uses as an additional security measure. With this property set, Confluence will not require password confirmation for the following actions: administrative actions, change of email address and Captcha for failed logins. Disabling password confirmations is useful if you are using a custom authenticator.
Setting this property to "false" disables the detection of browser language headers, effectively restoring Confluence behaviour to that of earlier releases. Setting this property to "true" enables the detection of the language headers sent by the browser. Confluenc will change the UI language based on the browser headers. See documentation on how users can choose a language preference.
Universal Plugin Manager 1.5
Universal Plugin Manager (UPM)
When this property is set to true, then UPM will not try to access the The Atlassian Marketplace. This is useful for application servers that do not have access to the Internet. See the UPM documentation.
Indicates how many objects each indexing thread should process at a time during a full re-index. Please note that this number does not include attachments
Indicates how many attachments each indexing thread should process at a time during a full re-index.
Forces Confluence to treat any LDAP directories it migrates as Active Directory, rather than relying on looking for sAMAccountName in the username attribute. This is necessary if you are upgrading from before Confluence 3.5, and need to use an attribute other than sAMAccountName to identify your users and are seeing
Disables the session invalidation on log out. As of 4.0 the default behaviour is to invalidate the JSession assigned to a client when they log out. If this is set to true the session is kept active (but the user logged out). This may be valuable when using external authentication systems, but should generally not be needed.
|4.0.5||2097152||Office Connector||Indicates the maximum size in bytes of an Excel file that can be viewed using the |
|200||Team Calendars||Specifies the maximum number of events per calendar. This property is effective only if the Team Calendars plugin is installed on your Confluence site.|
|4.3.2, 5.0-OD-10||Confluence||Allows Confluence to start up against the home directory of a newer version of Confluence. Note that running Confluence like that is unsupported. You should only turn this on if you know what you are doing. See After Downgrading, Confluence Will No Longer Run for details.|
|5.2||Confluence||Sets the number of threads to be used for a one-off reindex job. The value has to be in the range of 1 to 50 (inclusive), i.e. at least one thread but no more than 50 threads will be used. There is no default value. This system property does not affect the incremental indexing that Confluence does.|
Sets the number of threads to be used for reindexing attachments specifically, and allows you to reduce the concurrency for these more memory intensive index items.
|5.4.1||Confluence||Setting this property defines the directory on your Confluence Server where mailboxes can be imported from (for use with the Confluence Mail Archiving add-on). Mailboxes are not able to be imported from any other location. We recommend administrators create a directory in the Confluence Home directory specifically for this purpose. Mail cannot be imported from the server until this system property is set.|
|5.5||1000||Confluence||Setting this property changes the maximum number of items Confluence Search will return.|
|5.5||Confluence||By default, Confluence creates an upgrade recovery file before and after an upgrade. The operation can take long time on large databases and can be safely turned off if there is a process to back up database and verify the backup before performing an upgrade. Setting this property to false will disable upgrade recovery file creation.|
|5.5||Confluence||Setting this property defines the directory on your Confluence Server where JUnit Reports can be imported from (for use in the JUnit Report Macro). No other locations are permitted. We recommend administrators create a directory in the Confluence Home directory specifically for this purpose. JUnit Test result files cannot be imported from the server until this system property is set.|
This property defines the maximum amount of memory that can be allocated to extracting text from a DOCX file (for the purposes of search etc). The value refers to the amount of text inside the file (in bytes), ignoring any images.
In a cluster, setting this property to
This system property has no effect in standalone Confluence.
In a cluster, this property can be used to override the default port that Hazelcast will bind to, for example, if the port is unavailable, or you need to run more than one node on the same host (not recommended). It defaults to 5801.
|5.7||Confluence||The number of threads allocated to the file conversion service is calculated dynamically based on the amount of memory assigned to the instance and the number of CPU cores (usually 4 to 6 threads). This property can be used to change the number of threads. Decrease threads to resolve OOME issues, increase threads to resolve problems with documents spending too long in the queue.|
|5.7||1000||Confluence||Set this property to change the maximum number of items that can be queued for conversion. Any file conversion requests that are made when this maximum limit has been reached are aborted.|
|5.7||Confluence||Set this property to give each node in your Data Center cluster a human readable name (displayed in email notifications and in the footer). If left unset, Confluence will assign a node identifier to each node.|
Set this property to define a directory where you can add additional fonts to be used when rendering files (in previews and thumbnails).
This is useful if you need to support previewing files with specific fonts, or fonts with multibtye characters (such as Japanese).
Set this property to change the default font for rendering Word (
Specify just the name of the font (not the path).
Set this property to change the default font for rendering regular fonts in Powerpoint (
Specify just the name of the font (not the path).
Set this property to change the default font for rendering asian fonts in Powerpoint (
Specify just the name of the font (not the path).
Set this property to change the default font for rendering symbols in Powerpoint (
This is the font that will be used for bullets and other symbols when the font
Specify just the name of the font (not the path).
|5.9.1||10||In Confluence Data Center, the amount of time, in seconds, that a confluence node needing index recovery will wait for another node to offer an index snapshot, before it gives up and stops attempting to recover the index.|
|5.9.1||120||In Confluence Data Center, the amount of time, in seconds, that a confluence node needing index recovery will wait for an index snapshot to be created by another node, before it gives up and and stops attempting to recover the index.|
|5.9.1||1||In Confluence Data Center, the number of times that a node needing index recovery will attempt to recover its index. Set this property to 0 to disable index recovery on that node (for example, when you need to force a node to automatically rebuild its own index on startup).|
|5.9.1||1024||Confluence||Sets the memory (in megabytes) available to the Office Connector Canary process, which is a workaround for a known issue with the Import from Word option. See JVM crashes during Import from Word in Confluence for more information.|
|5.9.1||120000||Confluence||Sets the maximum timeout (in milliseconds) for the Office Connector Canary process, which is a workaround for a known issue with the Import from Word option. See JVM crashes during Import from Word in Confluence for more information.|
|5.9.5||300||Set this property to increase the default time to wait for plugins to start up. This is useful if you have problems with plugins not starting up in time, causing Confluence to fail to start.|
|5.9.7||30||Confluence||In Confluence Data Center, this sets how long (in seconds) a node can be out of communication with the cluster before it's removed from the cluster. See balancing uptime and data integrity for more info on when you may want to change this setting.|