*Product: *
Environment
| Operating System | |
|---|---|
| Affect Version/s | 1.2.4 |
| JVM | |
| Database | MySQL 5.x |
| Application Server | Standalone |
Error Message
19-Jan-2008 11:56:07 compile: 19-Jan-2008 11:56:08 [javac] Compiling 931 source files to /apps/Bamboo/xml-data/build-dir/PM-DEF/sircondb/components/ sdbapp/build/classes 19-Jan-2008 11:56:40 19-Jan-2008 11:56:41 19-Jan-2008 11:56:41 [javac] The system is out of resources. 19-Jan-2008 11:56:42 [javac] Consult the following stack trace for details. 19-Jan-2008 11:56:42 [javac] java.lang.OutOfMemoryError 19-Jan-2008 11:56:42 19-Jan-2008 11:56:42 BUILD FAILED 19-Jan-2008 11:56:42 /apps/Bamboo/xml-data/build-dir/PM-DEF/sircondb/build.xml:336: Following error occured while executing this line 19-Jan-2008 11:56:42 19-Jan-2008 11:56:42 Total time: 23 minutes 42 seconds 19-Jan-2008 11:56:42 Completed building build "Producer Manager - Default" return code = 1 19-Jan-2008 11:56:44 Plugin 'Clover Results Collector' not run as build failed. 19-Jan-2008 11:56:44 Running plugin 'Artifact Copier' 19-Jan-2008 11:56:44 Build Completed... finalising build 19-Jan-2008 11:56:44 Stopping timer. 19-Jan-2008 11:56:44 Build PM-DEF-12 completed.
Symptom
The build failure might not be isolated to one or to plans, it might be a consistent with all your plans failing with OutOfMemory exceptions.
Diagnostics/Test
A good way to check whether your Bamboo build has sufficient memory is to try increasing the memory and then verifying if this fixes the issue.
Root Cause
The root cause is simple - The ANT build doesn't have enough memory to execute your Build from Bamboo and as a result your build fails.
Solution
Edit your plan's build configuration, and add the following variable to the 'System Environment Variables' feild in your plan's build configuration page.
ANT_OPTS=-Xmx512m
Note: You may wish to change the memory allocation from 512mb to fit your plan's requirements.
Labels
(None)
