issue with build - java.lang.OutOfMemoryError: Java heap space

Folks - I'm using TeamCity 4.0.2.  I recently started to get the following failure.  Looks like its related to SVN.  I think this started to happen right after I upgraded to the latest Visual SVN Server (1.7.1 - based on Subversion 1.6.1).  Any ideas on how to fix this up?

[13:05:13]: Checking for changes
[13:05:14]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[13:05:14]: Checkout directory: C:\TeamCity\buildAgent\work\444338c803981184
[13:05:14]: Updating project sources
[13:05:14]: Updating C:\TeamCity\buildAgent\work\444338c803981184 from svn
[13:05:14]: Will use fast SVN update
[13:05:31]: Unexpected error: Java heap space
[13:05:31]: java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.expandCapacity(
at java.lang.AbstractStringBuilder.append(
at java.lang.StringBuffer.append(
at org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(
at org.tmatesoft.svn.core.SVNException.getMessage(
at java.lang.Throwable.getLocalizedMessage(
at jetbrains.buildServer.vcs.svn.SvnCheckoutOnAgentSupport.updateSources(
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.checkoutSources(
at jetbrains.buildServer.agent.impl.patch.GetProjectSources.execute(
at jetbrains.buildServer.agent.impl.runStages.GetSourcesStage.doBuildStage(
at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(

[13:05:31]: Build finished

Comment actions Permalink

Can you provide heap dump? Since the OOM occurs in the agent itself, to obtain heap dump you should add -XX:+HeapDumpOnOutOfMemoryError argument to agent JVM (

If OOME occurs again .hprof file should be create in the agent working directory (most likely this is a bin folder of the agent). Pleae upload this .hprof file to our ftp server:

Comment actions Permalink

Hi Pavel,

I just uploaded java_pid3556.hprof but I couldn't confirm whether it got there ok.  Can you check?
please note that i've restarted my build machine and I still get the same error.

thanking you,

Comment actions Permalink


  In Subversion 1.6 there was some changes related to canonical paths processing. To fix your case, please try replacing https://THEPARTY:8443 with https://theparty:8433.

  Hope this helps,

Comment actions Permalink

worked!  note that the port is still 8443, but making everything lower-case worked.


Please sign in to leave a comment.