Slow msbuild since upgrade to 9

Answered

Hi,

We have upgraded from TeamCity 8 to 9 and our .net builders increased their build time from 3 minutes to 15 minutes,

We started investigating this issue, by doing the next steps:

  1. Enabled "Performance Montioring" build feature - and we saw the disk io is maximum 9% and cpu is maximum 40% (our build agents have 2 cores and 4gb of memory)
  2. Enabled .net runner logs to see if something in msbuildbootstraper takes lots of time.

After 2 days of investigation (we checked our antivirus, io, cpu and memory and every looks fine) we started to suspect that MsbuildBootstrap of jetbrains takes most of the time.

We took one build, that with "msbuildbootstraper" takes 32 seconds and switched it to "Command Line" runner and called msbuild our selves and the build time decrease to 5 seconds.

We are currently thinking about downgrading to version 8 of teamcity or moving to tfs, before doing so - do you have any suggestions for fixing/throubleshooting this? 

3 comments

Hello Yosy,

Could you please attach build logs of slow, fast and build run via Command Line and also teamcity-agent.log?

What exact TeamCity version do you use now?

0

Please sign in to leave a comment.