We are having extreme problems with our TFS 2008 server. We run our build on a separate machine but just recently it has started to fail with ever increasing frequency - about 4 out of 5 builds fail. They fail at various points during the build process and give a variety of messages, all of which terminate with the line "The underlying connection was closed. An unexpected error occurred on a receive." Looking at the IIS log on the TFS machine there are many lines that say "503 Microsoft+Team+Foundation+Server+Application+Pool" We've examined the machine and we don't think it's a load problem. Any ideas anyone?
views:
26answers:
1I would take a closer look at Perfmon on the Application Tier machine. Look at both TFS counters (like response time), as well as general IIS counters. Additionally, take a look at your Data Tier. We had similar issues with build times increasing exponentially, which then started sprouting 503 / 505 errors.
When we started seeing the issue, we finally tracked it down to the fact that we were trying to check out a bunch of assemblies as part of our build, and the assemblies are marked as only being allowed to be checked out exclusively. This was causing a lot of database contention. Once we changed that file type to allow shared checkouts, our build problems went away.
To make this change:
In Visual Studio, go to the menu Team->Server Settings->Source Control File Types
Find the entry for Executable Files
Set File Merging to Enabled