Confluence Docs 3.3 : Configuring System Properties
This page last changed on Jul 05, 2010 by alui.
In general, you can configure system properties by providing an argument of -Dprop=value to a Java program when it starts up. Because Confluence is a Java web application, the Java program is typically your application server. Therefore, you need to configure system properties in your application server's start-up script. Below is a general example of how system properties are configured for any Java application. The system property arguments can appear anywhere in the argument list. java ... -Dhttp.proxyHost=proxy.example.org -Dhttp.proxyPort=8080 The above example configures two system properties: http.proxyHost and http.proxyPort with values proxy.example.org and 8080 respectively. Sometimes instructions will say simply 'set system property X', without saying what it should be set to. In this case, it is usually sufficient to simply use -Dprop, without a value. For example: java ... -Datlassian.mail.disable Application Server ExamplesPlease consult your application server documentation for how to provide system properties to the Java runtime or to a particular application server. Below are some examples of how to start up different application servers with these system properties set:
Configuring System Properties in Tomcat as a Windows ServiceDefining JAVA_OPTS in your setenv.bat file will not be sufficient to configure system properties if you are running Confluence with Tomcat as a Windows Service. Rather, there are two ways to configure system properties:
As an example of the latter, for Tomcat 5 you will need to modify HKEY_LOCAL_MACHINE -> SOFTWARE -> Apache Software Foundation -> Procrun 2.0 -> Tomcat5 -> Parameters -> Java -> Options and add the JAVA_OPTS parameter there with the necessary system properties. JvmMx and JvmMs are listed separately from the additional options. See Editing the Windows Registry for details. Displaying the System PropertiesTo see what Confluence is using, check Displaying System Properties. RELATED TOPICS |
![]() |
Document generated by Confluence on Jul 09, 2010 01:08 |