VS2010 very slow access to TFS2008 - how do I trobleshoot?
-
2010年4月13日 下午 03:11
Hello! I have just installed VS2010 ultimate and started using it against an existing TFS 2008 install (separate box hosted on hyper-v). The performance is VERY slow, so something must be wrong.
When I access the same TFS 2008 from VS2008 from the same client machine, the performance is very good. Performing a get latest of a large solution takes approx one minute on VS2008, and on VS2010 it takes several hours. I can see the progress dialog display each file with a approx five second pause between each source file. I have tried to use the tf get command from vs2010 command prompt, and the performance is equally slow as in the VS2010 IDE.Tested on both Windows Vista 32 and 64 bit. Microsoft Firewall Client for Isa server installed on both clients. Internet Explorer is configured to not use proxy on internal addresses. Connected to TFS2008 via http://team01:8080/ TFS2008 in installed on Windows Server 2003.
Have anyone experienced the same problem? How do I get around troubleshooting what causes this?
Besides from this, VS2010 rocks!Thank you in advance for your input.
RoMo
Developer
所有回覆
-
2010年4月14日 上午 05:22版主
Hi RoMo,
This is very strange and I did not encounter this issue before.
I am using 64bit Win7 with VS2008 and VS2010, when I get about 20MB source files from a TFS2008, both of them take about 1 minute, which means that VS2010 does not need more time than VS2008.
The connection between VS and TFS depends on the network connect between App tier and Client. Could you try to start machine in safemode(with network)? So that it would isolate other softwares or drivers.
Best regards,
Ruiz
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
-
2010年4月14日 上午 09:58
Thank you for your suggestion. I tried the safe mode, but that did not change anything performance-wise.
I have since then installed a test server with TFS2010, and the performance was equally bad between VS2010 and TFS2010 as VS2010 and TFS2008. So the problem I encountered was not related to TFS but to VS2010.
I have found out what caused the slow performance: In Internet Options, LAN settings under Connections tab, the setting "Use automatic configuration script" was checked with a entry http://firewall:8080/array.dll?Get.Routing.Script. When I removed the checkbox, and restarted VS2010 the performance was excellent.
So the internet settings seems to give a high performance-penalty for every call that VS2010 makes to a TFS-server, and this behavior is not present in VS2008 talking to a TFS server. Ruiz, do you want me to register this on the Connect site as a bug?
Developer- 已提議為解答 Radu Dorneanu 2011年7月19日 下午 01:28
-
2010年4月14日 下午 02:12
We're starting an investigation into this issue internally. We had a similar complaint about two weeks ago that came through customer support. It does not appear to be a TFS issue per se but rather something lower in the .NET Framework stack, having to do, as you mentioned, with automatic proxy discovery through the WPAD protocol.
You already found that you can work around the issue by turning off proxy autodiscovery globally on your system. I want to make sure you know that you can also disable it on a per-application basis by using a .exe.config setting. Add the following node to your <configuration> node in the .exe.config file.
<!-- Disable web proxy autodiscovery (download and compilation of javascript to determine proxy) -->
<system.net>
<defaultProxy enabled="false" />
</system.net>The .exe.config for Visual Studio is %VSINSTALLDIR%\Common7\IDE\devenv.exe.config and it already contains a section in the .exe.config for System.Net. After adding the defaultProxy element, that section would look like this
<system.net>
Hope this helps
<defaultProxy enabled="false" />
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>- 已標示為解答 RoMo 2010年4月20日 上午 11:16
-
2010年4月20日 上午 10:00版主
Hi Hi RoMo,,
Does Kelley's suggestion help?
Best regards,
Ruiz
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com -
2010年4月20日 上午 11:18
Hello Ruiz,
Sorry for taking so long to respond to the suggestion. YES, I included the <defaultProxy enabled="false" /> in %VSINSTALLDIR%\Common7\IDE\devenv.exe.config and after a restart of VS2010 it performs very good.
As I said before VS2010 is an amazing release!
Thank you for solving this so fast.
RoMo.
Developer -
2011年3月24日 下午 04:09
Yep, got the same problem after rebuilding my Win 7 64 bit machine.
Removed proxy - everything flies !!!
Thanx MS
-
2011年3月29日 下午 10:13I experienced the same issue and was blaming the server itself for the poor performance. We couldn't pull anything down from TFS without it taking an impossibly long time. I'm talking several hours to pull 10 MB! As soon as I added the defaultProxy line and restarted, problem was resolved.
-
2011年3月29日 下午 11:07
Also I noticed that even after applying the fix to Team Explorer TF.exe operations were still just as slow. So, I applied the same fix to the TF.exe.config - having no idea if this would work at all - but it did! Now my command line operations are flying as they should be.- 已提議為解答 colinbashbash 2011年7月15日 下午 07:06
-
2011年3月31日 上午 05:09
Hi Jason,
You can fix this problem of TFS by editing registry.
Navigate to key
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\Proxy
and then change value of URL to any dummy website like 'www.abcdummy.com'
Restart VS after editing registry key value.
Thanks
Pratham
-
2011年7月15日 下午 07:08
Also I noticed that even after applying the fix to Team Explorer TF.exe operations were still just as slow. So, I applied the same fix to the TF.exe.config - having no idea if this would work at all - but it did! Now my command line operations are flying as they should be.
I noticed that I could no longer use the Extension Manager when I disabled this for visual studio 2010. However, if I just disabled it on the TF.exe.config, everything seems to work, with the speed being normal for TFS stuff.
Thanks Jason!
-
2011年11月1日 下午 08:08This does not seems to help me for some reason. We have TFS2010 and I'm using VS2010.
-
2011年12月21日 上午 07:40This has solved my problem.
-
2011年12月21日 下午 08:22
After looking EVERYWHERE this solved my problem too. Microsoft should definitely make looking into this a priority because I spend MONTHS looking for a solution, and the ONLY program this seems to affect adversely IS TEAM FOUNDATION SERVER 2010. It is practically UNUSABLE with proxy auto-discovery enabled.
By the way the Title of this thread is misleading BECAUSE the same problem will occur No Matter if the TF Server is 2008 or 2010! Ours is 2010.
God help me I am trying to work in VB.NET 2005- 已編輯 SonofSmog 2011年12月21日 下午 08:24
-
2012年1月20日 下午 07:07
I had the same problem
Environment : VisualStudio Ultimate 2010 and TFS 2010
check if you have any extensions interfering with TFS.
I had TFSSCExplorerExtension and once I disabled it, TFS started working fast as it was earlier ( prior to installation of this Extension)
-
2012年7月9日 下午 06:31
We are experiencing the same, and the fix is working for VS.
Does anyone know what if anything I can add to my mtm.exe.config to fix the slowness of Test Manager?
Thanks,
David
-
2012年7月9日 下午 11:29
I figured out that adding these 3 lines after <system.diagnostics> fixes it for Test Manager:
<system.net>
<defaultProxy enabled="false" />
</system.net>
-
2012年12月28日 上午 05:46
I have updated the these 3 lines in devenv.exe.config and it solved my problem when i do the get latest from the visual studio explorer.But my application uses TF.exe command where should i update these 3 lines in TFS.exe.config file?

