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

Interne Informatik June 12, 2014

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

5 answers

1 accepted

0 votes
Answer accepted
FelipeA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2014

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

0 votes
Prakash Somasundaraiah June 23, 2021

Hello Team,

 

We are getting java.lang.OutOfMemoryError: GC overhead limit exceeded during bamboo build,

I try to increase the java_options/maven_opts  in the build plan task (

Maven 3.x configuration)

but no luck.

Environment variables:

_JAVA_OPTIONS ="-Xms1024m -Xmx6144m"

MAVEN_OPTS="-Xmx6144m -Xms2048m" "-XX:-UseGCOverheadLimit"

could you please help me what would be the issue here.

0 votes
Interne Informatik June 15, 2014

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

Sergey Podobry _Stellarity Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2014

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

0 votes
Sergey Podobry _Stellarity Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2014

Hi,

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

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2014

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events