Bamboo Service goes down Temporarily Unavailable when build is set up
Asked by Rohit:

Hello Team,

When a build is setup, i see bamboo server goes down after sometime. Please help me in understanding whats causing this issue. Below are the logs when Build is run

Let me know if you need more information

[@Foong](/t5/user/viewprofilepage/user-id/502088)

```
simple 29-May-2018 13:37:39 Executing xray actions for the following build: International Monitoring - cs-monitor-p - Default Job #45 (IM-CSMONP-JOB1-45)
simple 29-May-2018 13:37:39 Build International Monitoring - cs-monitor-p - Default Job #45 (IM-CSMONP-JOB1-45) started building on agent Bamboo Local 3
simple 29-May-2018 13:37:39 
simple 29-May-2018 13:37:39 Build working directory is /efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1
simple 29-May-2018 13:37:39 Executing build International Monitoring - cs-monitor-p - Default Job #45 (IM-CSMONP-JOB1-45)
simple 29-May-2018 13:37:39 Starting task 'Check out source code' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple 29-May-2018 13:37:39 Build always requires a clean checkout
simple 29-May-2018 13:37:39 Cleaning build directory '/efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1'
simple 29-May-2018 13:37:40 Updating source code to revision: 6cd3db16eb52a3299671fc0cd79516776ed87b2d
simple 29-May-2018 13:37:41 Fetching 'refs/heads/develop' from 'ssh://git@bitbucket.creditsafe.com/im/cs-monitor-p.git'.
simple 29-May-2018 13:37:41 Warning: Permanently added '[127.0.0.1]:42079' (RSA) to the list of known hosts.
simple 29-May-2018 13:37:41 Checking out revision 6cd3db16eb52a3299671fc0cd79516776ed87b2d.
simple 29-May-2018 13:37:41 Creating local git repository in '/efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1/.git'.
simple 29-May-2018 13:37:42 Cloning into '/efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1'...
simple 29-May-2018 13:37:42 done.
simple 29-May-2018 13:37:47 Switched to a new branch 'develop'
simple 29-May-2018 13:37:47 Branch develop set up to track remote branch develop from origin.
simple 29-May-2018 13:37:47 Updated source code to revision: 6cd3db16eb52a3299671fc0cd79516776ed87b2d
simple 29-May-2018 13:37:47 Finished task 'Check out source code' with result: Success
simple 29-May-2018 13:37:47 Running pre-build action: VCS Version Collector
simple 29-May-2018 13:37:47 Starting task 'Build Mule Project' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3'
command 29-May-2018 13:37:47 Beginning to execute external process for build 'International Monitoring - cs-monitor-p - Default Job #45 (IM-CSMONP-JOB1-45)'\n ... running command line: \n/usr/bin/mvn --batch-mode -Djava.io.tmpdir=/opt/atlassian/atlassian-bamboo-5.15.5/temp/IM-CSMONP-JOB1 mvn clean package\n ... in: /efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1\n ... using extra environment variables: \nbamboo_planRepository_1_branch=develop\nbamboo_capability_system_builder_nunit3_NUnit_3_Build=C:\Windows\Microsoft.NET\Framework*64*\v2.0.50727\msbuild.exe\nbamboo_repository_49512449_branch_name=develop\nbamboo_planRepository_1_branchDisplayName=develop\nbamboo_repository_revision_number=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nMAVEN2_HOME=/usr\nbamboo_resultsUrl=https://bamboo.creditsafe.com/browse/IM-CSMONP-JOB1-45\nbamboo_planRepository_1_name=cs-monitor-p\nbamboo_build_working_directory=/efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1\nbamboo_buildKey=IM-CSMONP-JOB1\nbamboo_capability_system_jdk_JDK_1_8_0_171=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64\nbamboo_repository_49512449_name=cs-monitor-p\nbamboo_shortPlanName=cs-monitor-p\nbamboo_planRepository_name=cs-monitor-p\nbamboo_buildNumber=45\nbamboo_capability_system_jdk_JDK_1_8_0_131=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-2.b11.el7_3.x86_64\nbamboo_shortJobName=Default Job\nbamboo_buildResultsUrl=https://bamboo.creditsafe.com/browse/IM-CSMONP-JOB1-45\nbamboo_capability_system_builder_nunit3_MSBuild_Run=C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe\nbamboo_planRepository_repositoryUrl=ssh://git@bitbucket.creditsafe.com/im/cs-monitor-p.git\nbamboo_capability_system_jdk_JDK_1_8_0_121__JRE_=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre\nbamboo_agentId=53084161\nbamboo_planName=International Monitoring - cs-monitor-p\nbamboo_shortPlanKey=CSMONP\nbamboo_repository_49512449_previous_revision_number=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nbamboo_shortJobKey=JOB1\nbamboo_repository_49512449_git_branch=develop\nbamboo_planRepository_revision=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nbamboo_repository_previous_revision_number=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nbamboo_buildTimeStamp=2018-05-29T13:37:39.638Z\nbamboo_planRepository_previousRevision=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nbamboo_repository_49512449_revision_number=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nM2_HOME=/usr\nbamboo_buildResultKey=IM-CSMONP-JOB1-45\nbamboo_repository_git_branch=develop\nbamboo_repository_branch_name=develop\nbamboo_buildPlanName=International Monitoring - cs-monitor-p - Default Job\nbamboo_planRepository_1_revision=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nbamboo_repository_49512449_git_repositoryUrl=ssh://git@bitbucket.creditsafe.com/im/cs-monitor-p.git\nbamboo_capability_system_jdk_JDK_1_8_0_141=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64\nbamboo_repository_name=cs-monitor-p\nJAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64\nbamboo_dependenciesDisabled=false\nbamboo_capability_system_docker_executable=/usr/bin/docker\nbamboo_planRepository_branch=develop\nbamboo_capability_system_builder_nunit3_msbuild_exe=C:\Windows\Microsoft.NET\Framework*64*\v2.0.50727\nbamboo_agentWorkingDirectory=/efs/bamboo/bamboobin/build-dir\nbamboo_capability_system_git_executable=/bin/git\nbamboo_repository_49512449_git_username=\nbamboo_planRepository_1_previousRevision=6cd3db16eb52a3299671fc0cd79516776ed87b2d\nbamboo_capability_system_jdk_JDK_1_8_0_171__JRE_=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre\nbamboo_repository_git_username=\nbamboo_capability_system_jdk_JDK_1_8_0_161__JRE_=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64/jre\nbamboo_planRepository_branchDisplayName=develop\nbamboo_capability_system_jdk_JDK_1_8_0_151=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64\nbamboo_planRepository_1_type=bbserver\nbamboo_planRepository_branchName=develop\nbamboo_capability_system_jdk_JDK_1_8_0_151__JRE_=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre\nbamboo_capability_system_jdk_JDK_1_8_0_111__JRE_=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/jre\nbamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/jre\nbamboo_plan_storageTag=plan-48660481\nbamboo_planRepository_type=bbserver\nbamboo_planRepository_1_username=\nbamboo_ManualBuildTriggerReason_userName=oc-rohity\nbamboo_repository_git_repositoryUrl=ssh://git@bitbucket.creditsafe.com/im/cs-monitor-p.git\nuseMavenReturnCode=false\nbamboo_capability_system_builder_node_Node_js=/usr/bin/node\nbamboo_capability_system_builder_command_AWSCLI=/bin/aws\nbamboo_capability_system_builder_mvn3_Maven_3=/usr\nbamboo_working_directory=/efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1\nbamboo_planKey=IM-CSMONP\nbamboo_planRepository_1_repositoryUrl=ssh://git@bitbucket.creditsafe.com/im/cs-monitor-p.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_8=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64/jre\nbamboo_capability_system_jdk_JDK_1_8_0_161=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64\nbamboo_planRepository_1_branchName=develop\nPATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n
error 29-May-2018 14:07:04 /usr/share/java-utils/java-functions: fork: Cannot allocate memory
simple 29-May-2018 14:07:13 Failing task since return code of [/usr/bin/mvn --batch-mode -Djava.io.tmpdir=/opt/atlassian/atlassian-bamboo-5.15.5/temp/IM-CSMONP-JOB1 mvn clean package] was 254 while expected 0
simple 29-May-2018 14:07:13 Parsing test results under /efs/bamboo/bamboobin/build-dir/IM-CSMONP-JOB1...
simple 29-May-2018 14:07:13 Finished task 'Build Mule Project' with result: Failed
simple 29-May-2018 14:07:13 Running post build plugin 'NCover Results Collector'
simple 29-May-2018 14:07:13 Running post build plugin 'Artifact Copier'
simple 29-May-2018 14:07:13 Running post build plugin 'npm Cache Cleanup'
simple 29-May-2018 14:07:13 Running post build plugin 'Clover Results Collector'
simple 29-May-2018 14:07:14 Running post build plugin 'Docker Container Cleanup'
simple 29-May-2018 14:07:14 Finalising the build...
simple 29-May-2018 14:07:14 Stopping timer.
simple 29-May-2018 14:07:14 Build IM-CSMONP-JOB1-45 completed.
simple 29-May-2018 14:07:14 Running on server: post build plugin 'NCover Results Collector'
simple 29-May-2018 14:07:14 Running on server: post build plugin 'Build Hanging Detection Configuration'
simple 29-May-2018 14:07:14 Running on server: post build plugin 'Clover Delta Calculator'
simple 29-May-2018 14:07:14 Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple 29-May-2018 14:07:14 All post build plugins have finished
simple 29-May-2018 14:07:14 Generating build results summary...
simple 29-May-2018 14:07:14 Saving build results to disk...
simple 29-May-2018 14:07:14 Logging substituted variables...
simple 29-May-2018 14:07:14 Indexing build results...
simple 29-May-2018 14:07:14 Finished building IM-CSMONP-JOB1-45.
```

![bamboo2.JPG](/t5/image/serverpage/image-id/23153i60650CBF08899E81/image-size/large?v=v2&px=999 "bamboo2.JPG")![bamboo1.jpg](/t5/image/serverpage/image-id/23154iF964B6337718D137/image-size/large?v=v2&px=999 "bamboo1.jpg")


Answers:
author: Gabriel Ribeiro
body: Hi Rohit,

It looks like you are running the build on a local agent, correct? Could you please double check if the Bamboo is not running out of heap memory during the build execution? You might need to increase the heap memory a little bit ([Configuring your system properties](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html))

When you try to build this same project from outside Bamboo, does it work?

thanks

comments: author: Rohit
body: [@Gabriel Ribeiro](/t5/user/viewprofilepage/user-id/352687) thanks for reply. It was on cloud not on local, yes there was space issues