Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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.
Jun 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

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.

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.
Jun 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.
Jun 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.
Jun 12, 2014

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events