Index
Downloads (PDF, HTML & XML formats)
[Bamboo Knowledge Base Home]
Documentation for Bamboo 4.0.x. Documentation for earlier versions of Bamboo is available too. 

The Bamboo EAR-WAR distribution is intended for deployment into an existing J2EE application server. It is assumed that you already know how to deploy a web application on the application server of choice. If not, we recommend that you install the Bamboo distribution.
The following instructions are only indicative of the process and examples are based on installing the Bamboo WAR file on the Apache Tomcat application server. Deployment and configuration will differ from the procedure below if you choose to deploy the Bamboo EAR-WAR distribution on another (unsupported) application server.
We also do not support deploying multiple Atlassian applications to a single Tomcat container for a number of practical reasons. Firstly, you must shut down Tomcat to upgrade any application and secondly, if one application crashes, the other applications running in that Tomcat container will be inaccessible.
Finally, we recommend not deploying any other applications to the same Tomcat container that runs Bamboo, especially if these other applications have large memory requirements or require additional libraries in Tomcat's lib subdirectory.
On this page:
webapps folder of Tomcat. Tomcat will perform all the necessary extractions when it starts.Extract the WAR file to your chosen directory in the webapps folder. This directory is referred to as the installation directory (i.e. <bamboo-install>)
Extracting the Bamboo WAR
 By default, the WAR file will extract to a folder called 
Bamboo-<version>. The name of the directory in the webapps folder will form the URL required to access Bamboo (e.g. Tomcat/webapps/bamboo-1.0/ will become http://host:port/bamboo-1.0/). You may wish to change the directory name for a more concise access URL.
Set your Bamboo Home Directory. You can do this in one of three ways:
bamboo.home property in the file /WEB-INF/classes/bamboo-init.properties to your chosen Bamboo home directory.-Dbamboo.home=C:/bamboo/bamboo-home).If you are going to use Bamboo remote agents, set the following in the /WEB-INF/classes/bamboo-init.properties file:
bamboo.jms.broker.uri=tcp://localhost:54663
You have to set the following Java OPTs on your application server:
-server — Ensures that the jvm starts up in server mode. This will perform various optimisation tasks which are beneficial for long-running applications.-Xmx512m — Sets the maximum memory recommended for Bamboo.-XX:MaxPermSize=256m — Sets the maximum permgen memory recommended for Bamboo.-Djava.awt.headless=true — (Unix systems only) This allows AWT to run in headless mode and is required if running Bamboo in non-graphical environments. For more details visit the Sun Developer Network.In Tomcat, you can set the above Java OPTs as follows:
Windows:
Assign the desired properties to the JAVA_OPTS variable:
set JAVA_OPTS=-server -XX:MaxPermSize=256m -Dbamboo.home=/opt/bamboo/bamboohome -Xmx512m -Djava.awt.headless=true %JAVA_OPTS%
Linux-based systems:
Assign the desired properties to the JAVA_OPTS variable:
JAVA_OPTS="-server -XX:MaxPermSize=256m -Dbamboo.home=/opt/bamboo/bamboohome -Xmx512m -Djava.awt.headless=true $JAVA_OPTS" export JAVA_OPTS
If you have extracted the WAR file to a directory other than the default directory (e.g. for a Tomcat application server), you need to deploy <bamboo-install> by following the steps below:
bamboo.xml in your Tomcat installation's conf/Catalina/localhost directory. If you have set up a different hostname for your Tomcat instance, please use your specified hostname instead of localhost.Open your new bamboo.xml and add the following:
<Context path="/bamboo" docBase="c:/applications/bamboo-war/" debug="0" reloadable="true"> </Context>
If you wish to change the context path to a different name, change both the context path and the name of the xml file.
For docBase, specify the <bamboo-install> absolute path that you noted down earlier.
If you are installing Bamboo 3.4 or nerver versions
If installing Bamboo 3.4, or newer versions, please make sure that you apply the Tomcat configuration suggested in this KB Article.
http://host:port/bamboo.
2 Comments
Jason Huntley
Sept 13, 2011Setting up java options for tomcat as an NT service
Referencing step 4 "Set Java OPTs", the instructions will not be enough if you choose to run bamboo as a service. The jvm options are set separately for the nt service. You must modify your service.bat file before installing the nt service. This file resides in the tomcat/bin directory with the other startup.bat and shutdown scripts. Scroll down to the following section:
Modify this line to match the following:
The MaxPermSIze is required for resolving the java.lang.OutOfMemoryError: PermGen space exceptions. The initial memory, jvmMs, should definitely be set to 512Mb for bamboo and extended, JvmMx, to 1024Mb. The thread stack size, JvmSs, should also be set to 1024(value is read in Kb).
Once those option updates are complete, you may proceed to install tomcat as a service by running: "service.bat install Bamboo".
Seravy
May 14, 2012If you installed tomcat via the windows service .exe installer (eg apache-tomcat-7.0.27.exe or apache-tomcat-6.0.35.exe) It will automatically create the service which will be too late to specify the service install options like Jason mentioned above. The folowing options can be used on tomcat6 and 7 installs.
If you are using this installer to set the 3 options open the config menu (Run 'Moniter Tomcat' or run '"C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\Tomcat7w.exe" //ES//Tomcat7' updating your path and/or service name)
On the 'Java' tab that opens, to set the '-server' option you need to specify the server jvm.dll for 'Java Virtual Machine'. Click browse and hunt for one of the bin\server\jvm.dll files. It should be installed with the JDK, for example 'C:\Program Files\Java\jdk1.7.0_04\jre\bin\server\jvm.dll' or 'C:\Program Files\Java\jre7\bin\server\jvm.dll'. It may have already found the server jvm.dll by default but check to make sure it doesn't say 'client\jvm.dll'
The other two options:
-Xmx512m
-XX:MaxPermSize=256m
Can be added to the bottom of the Java Options text box. Perhaps that is that the three memory related text boxes below that are for but setting the java options seem to work.
Hit OK and then start the service. If it doesn't start check your logs for stderr and see what option wasn't supported or any related errors. Othewise it should start fine.