Configuring your system properties
Linux
To configure system properties in Linux installations:
- From
, open<bamboo-install-dir>
/binsetenv.sh
. - Find the section JVM_SUPPORT_RECOMMENDED_ARGS=.
- Refer to the list of parameters below.
Add all parameters in a space-separated list, inside the quotations.
Windows (starting from .bat file)
To configure system properties in Windows installations when starting from the .bat file:
- From
, open<bamboo-install-dir>
\binsetenv.bat
. - Find the section set JVM_SUPPORT_RECOMMENDED_ARGS=
- Refer to the list of parameters below.
Add all parameters in a space-separated list, inside the quotations.
Docker
For Bamboo running in a Docker container, none of the system properties or startup options you set with setenv.sh
will be persisted between container restarts. To persistently set system properties and startup options, use the docker run command to recreate the container from the same image, passing the JVM_SUPPORT_RECOMMENDED_ARGS
environment variable with a space-separated list of options using the -e
or --env-file
flags.
For example:
docker run [...] --name="bamboo" -e=JVM_SUPPORT_RECOMMENDED_ARGS="[options]" atlassian/bamboo:<bamboo-version>
Add all parameters in a space-separated list, inside the quotations.
For more information, see Set environment variables (-e, --env, --env-file) in the Docker Docs.
Windows service
There are two ways to configure system properties when starting Bamboo as a service — either in the command prompt or in the Windows registry.
Setting properties for Windows services from the command line
- Identify the name of the service that Bamboo is installed as in Windows (Control panel > Administrative tools > Services):
- Open a command prompt by selecting Start > Run.
- In the Run window, type
cmd
and press the Enter key. - In the command prompt, navigate to the
bin
subdirectory of your Bamboo installation directory. Run the following command:
bamboow.exe //ES//%SERVICENAME%
Following the example above, the full command would be:
bamboow.exe //ES//Bamboo
- Select 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.
If you want to change the heap size configured for the JVM, use the Initial memory pool and Maximum memory pool fields instead of adding the -Xms and -Xmx parameters to the list of Java options.
Setting properties for Windows services using 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.
To set properties for Windows services using the Windows 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 >> Bamboo
64-bit:HKEY_LOCAL_MACHINE >> SOFTWARE >> Wow6432Node >> Apache Software Foundation >> Procrun 2.0 >> Bamboo
- 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.
Changing the Bamboo start port
- Stop Bamboo.
- Edit
<Bamboo install directory>/conf/server.xml
Update the following so that
Connector port
is set to the port value you require:<Service name="Catalina"> <Connector port="8085" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true"/>
- Restart Bamboo.
List of startup parameters
Memory Property | Notes | Related Pages |
---|---|---|
-Xmx | These properties are pre-existing. See related pages for instructions. | |
-XX:+PrintGCTimeStamps -verbose:gc -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError | Set these for Garbage Collection tuning. |