there was an OOM.
1. was it the build that caused OOM?
in that case specifying -Xmx in the java command line params would help, I guess?

2. was it in teamCity itself? where to give teamCity more memory?

INFO - erverSide.impl.BuildServerImpl - Running build saved to DB: 179 main build RC on agent *
ERROR - de.impl.XmlRpcClientBasedAgent - Problem pinging * at *. Firewall problem? Or wrong IP of agent?
jetbrains.buildServer.xmlrpc.RemoteCallException: Call */RPC2 buildAgent.ping: java.lang.OutOfMemoryError: Java heap space
at jetbrains.buildServer.xmlrpc.XmlRpcTargetImpl.call(XmlRpcTargetImpl.java:43)
at jetbrains.buildServer.serverSide.impl.XmlRpcClientBasedAgent.ping(XmlRpcClientBasedAgent.java:70)
at jetbrains.buildServer.serverSide.impl.BuildServerImpl.pingAllAgents(BuildServerImpl.java:691)
at jetbrains.buildServer.serverSide.impl.BuildServerRunner$1.doSomething(BuildServerRunner.java:0)
at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:5)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
INFO - activities.log.ActivitiesLog - Configuration added to queue; configurationName=main build RC; requestor=Unexpected finish
INFO - activities.log.ActivitiesLog - Build finished; buildId=179, interrupted=true
INFO - erverSide.impl.BuildServerImpl - Finishing build 179, failed: false, interrupted: true

Comment actions Permalink

this happened again over the weekend.
Can you please give me advice?

Comment actions Permalink

ERROR - verSide.impl.XmlRpcBasedServer - Trouble logging BuildMessage1 Text 1063657 DEBUG ***, *\tempbuild\mc266RC2_deu\ffdffd\pofe4fe9.map DefaultMessage

java.lang.OutOfMemoryError: Java heap space

The logfile of that build can be VERY big (>40mb) - can this be a problem?

Comment actions Permalink


Please try to debug OOM problem according to instructions at

Thanks in advance,

Comment actions Permalink

no problems any more when running via the batch scripts, with -Xmx512m


Please sign in to leave a comment.