It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get java.lang.OutOfMemoryError: GC overhead limit exceeded when start a Build

Hi

We're evaluating bamboo CI Server. Because we have to connect to TFS 2013 Reporistory, we've installed TFS Repository Add-on from https://marketplace.atlassian.com/plugins/com.stellarity.bamboo.tfs-repository-plugin#support.

Now, everytime we start a build, we get this error:

simple 13-Jun-2014 15:31:42 Build Release 14.02 - R14.02 - Default Job #4 (REL-R1402-JOB1-4) started building on agent Default Agent
simple 13-Jun-2014 15:31:42 Build working directory is D:\Bamboo\xml-data\build-dir\REL-R1402-JOB1
simple 13-Jun-2014 15:31:42 Executing build Release 14.02 - R14.02 - Default Job #4 (REL-R1402-JOB1-4)
simple 13-Jun-2014 15:31:42 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple 13-Jun-2014 15:31:42 Updating source code to revision: 33257
error 13-Jun-2014 15:33:47 Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.
error 13-Jun-2014 15:33:47 java.lang.OutOfMemoryError: GC overhead limit exceeded
error 13-Jun-2014 15:33:47 at java.util.Arrays.copyOfRange(Unknown Source)
error 13-Jun-2014 15:33:47 at java.lang.String.<init>(Unknown Source)
error 13-Jun-2014 15:33:47 at com.ctc.wstx.util.TextBuilder.getEntry(TextBuilder.java:82)
error 13-Jun-2014 15:33:47 at com.ctc.wstx.sr.AttributeCollector.getValue(AttributeCollector.java:245)
error 13-Jun-2014 15:33:47 at com.ctc.wstx.sr.BasicStreamReader.getAttributeValue(BasicStreamReader.java:616)
error 13-Jun-2014 15:33:47 at ms.tfs.versioncontrol.clientservices._03._GetOperation.readFromElement(_GetOperation.java:566)
error 13-Jun-2014 15:33:47 at ms.tfs.versioncontrol.clientservices._03._Repository5Soap_GetResponse.readFromElement(_Repository5Soap_GetResponse.java:113)
error 13-Jun-2014 15:33:47 at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service$2.readSOAPResponse(_Repository5Soap12Service.java:232)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:668)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:473)
error 13-Jun-2014 15:33:47 at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.get(_Repository5Soap12Service.java:222)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.get(WebServiceLayer.java:945)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayerLocalWorkspaces.get(WebServiceLayerLocalWorkspaces.java:818)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2450)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2355)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2343)
error 13-Jun-2014 15:33:47 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2319)
error 13-Jun-2014 15:33:47 at com.stellarity.bamboo.repository.TfsRepository.checkoutFilesSimple(TfsRepository.java:709)
error 13-Jun-2014 15:33:47 at com.stellarity.bamboo.repository.TfsRepository.tryToRetrieveSourceCode(TfsRepository.java:664)
error 13-Jun-2014 15:33:47 at com.stellarity.bamboo.repository.TfsRepository.retrieveSourceCode(TfsRepository.java:305)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:259)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:168)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:73)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:186)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
error 13-Jun-2014 15:33:47 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
error 13-Jun-2014 15:33:47 Failed to prepare the build 'Release 14.02 - R14.02 - Default Job #4 (REL-R1402-JOB1-4)'
simple 13-Jun-2014 15:33:47 Running on server: post build plugin 'NCover Results Collector'
simple 13-Jun-2014 15:33:47 Running on server: post build plugin 'Clover Delta Calculator'
simple 13-Jun-2014 15:33:47 Running on server: post build plugin 'Build Hanging Detection Configuration'
simple 13-Jun-2014 15:33:47 Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple 13-Jun-2014 15:33:47 All post build plugins have finished
simple 13-Jun-2014 15:33:47 Generating build results summary...
simple 13-Jun-2014 15:33:47 Saving build results to disk...
simple 13-Jun-2014 15:33:47 Indexing build results...
simple 13-Jun-2014 15:33:47 Finished building REL-R1402-JOB1-4.

Some googling an searches in documentation did't help us to find out whats wrong. Any help?

Thanks

Stefano

4 answers

1 accepted

Hi Stefano,

This errors means you need to increase your JAVA heap size to properly acomodate Bamboo. You can do so by following this procedure:

https://confluence.atlassian.com/display/BAMKB/OutOfMemory+Errors+in+Bamboo

Best regards,

Felipe Alencastro

Hi,

It looks like you need to increase java memory. Try to increase both Xmx and Xms values.

Hi

Thanks for yours replies.

First, I did only changed JVM_MAXIMUM_MEMORY to 2048m
Now I've even changed also JVM_MINIMUM_MEMORY to 2048m but got always the same error.

Whats different now is that tomcat process is hanging sometime after starting the build.

Now changed also BAMBOO_MAX_PERM_SIZE to 2048m, still got the same error

Any other help?

BR
Stefano

Try the following settings: -XX:MaxPermSize=256m -Xms512m -Xmx1024m

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

1,163 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you