We use NCrunch on a solution with about 80 projects. Since last week we noticed that one project suddenly takes a very long time (around 10 minutes) to build on the grid nodes. I have tried to narrow down the root cause but was not able to do so.
What I see:
- MsBuild.exe only uses about 12-15% of CPU when building with NCrunch
- One MsBuild.exe process does not stop even after I turn off the grid service
- When I build the project on the console with the UseSharedCompilation=false then it builds in around 20 seconds and uses the CPU at 100%
- Sometimes I get the following error:
Quote:System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Core.Grid.Connectivity.ConnectionTimeoutHandler.ResetPing()
at nCrunch.Core.Grid.Connectivity.GridMessageSender.()
at nCrunch.Core.Threading.PooledWorkItem.Start()
at nCrunch.Core.Threading.ThreadFactory.(Object )
What I tried:
- I tried with NCrunch 3.17, 3.18 and 3.20 and I see the same behaviour
- Delete the workspace folder, reboot the grid node servers, downgrade Visual Studio on my machine and on the grid node server
What else can I do to find out what causes this problem? Would the MsBuild.exe logs give me more information? How do I access them?