Visual Studio 2008在启动时非常慢 [英] Visual Studio 2008 very slow at startup

查看:97
本文介绍了Visual Studio 2008在启动时非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中有超过50个项目的解决方案。 我们正在使用最新的TFS 2008驱动程序,Resharper和Visual Assiste X插件。  Studio和.Net 3.5 Framework最高可达SP1。

当我启动Visual Studio并打开解决方案时,开发环境需要大约6-7分钟才能响应。 DEVENV.exe正在摧毁处理器并处理大量I / O,并且几乎完全没有响应,直到完成它正在做的任何事情。我已经卸载了我正在使用的两个插件,并且行为仍然存在。

我有一些 屏幕截图应该清楚我的意思,但我不能将它们附在这些帖子上。

它似乎是  "cslangsvc.dll!CreateCompilerFactory + 0x1b22"导致问题的步骤。 堆栈跟踪中的最后一个条目是"kernal32.dll!GetModuleFileNameA + 0x1ba"。 此线程正在将100%的cpu周期分配给DEVENV.EXE。当您在DEVENV.EXE上打开性能图时,I / O字节历史记录在整个时间内徘徊在20MB左右。 它上下移动了很多,但平均大约20MB。处理器(我有一个4 GB内存的四核机器)徘徊在15%到25%之间。 

我最近用新装的XP SP3完全重建了我的机器。 很明显,我当时安装了一份新的工作室副本。 我真的因为这个而斗智斗勇。&nb​​sp;我的机器是7家开发商中唯一一家这样做的机器。

解决方案

您好,

至于您的问题,您可以尝试以下步骤:看看他们是否有所帮助:
)a)    尝试运行devenv / ResetSettings(在命令提示符下)以消除相关的潜在设置问题。


b)    尝试禁用加载项(例如“工具” |“加载项管理器”)或运行'devenv.exe /SafeMode”。这可以消除第三方加载项或程序包导致问题的可能性。 (有关更详细的VS命令行开关信息,请参阅: http://msdn2.microsoft.com/en- us / library / xee0c8y7.aspx


c)    尝试创建一个新项目。有时,损坏的项目设置可能会导致问题。这些都是针对具体项目的。


d)    确保我们已应用最新的服务包。


e)    尝试将操作系统重新引导至安全模式。这有助于隔离是否有任何其他应用程序干扰Visual Studio。请注意,某些功能(如IIS)在安全模式下不可用。请检查是否可以应用。除了安全模式,我们还可以尝试"干净启动":如何配置Windows XP以"干净启动"方式启动声明 http://support.microsoft.com/kb/310353


F)     尝试创建一个新的用户帐户。这可以帮助隔离用户配置文件损坏相关的原因。
另外,您可以在Visual C#General上发布您的问题,看看是否有任何社区成员遇到过这个问题并且有任何建议。

感谢。


I have a solution with over 50 projects in C#.  We are using the latest TFS 2008 drivers, Resharper, and Visual Assiste X plugins.  Studio and the .Net 3.5 Framework is up to SP1.

When I start Visual Studio and open the solution it takes about 6-7 minutles for the dev environment to become responsive. DEVENV.exe is hammering away on the processor and processing lots of I/O and is almost completely unresponsive until if finishes whatever it is doing. I have uninstalled both of the plugins I am using and the behavior persists.

I have some  screen shots that should make clear what I mean, but I can't attach them to these posts.

It seems to be  the "cslangsvc.dll!CreateCompilerFactory+0x1b22" tread that is causing the issue.  The last entry in the stack trace is "kernal32.dll!GetModuleFileNameA+0x1ba".  This thread is getting 100% of the cpu cycles being allocated to DEVENV.EXE. When you open the performance graph on DEVENV.EXE the I/O Bytes History hovers around 20MB for the entire time.  It goes up and down a good bit but averages around 20MB. The processor ( i have a quad core machine with 4 GB of memory) hovers between 15% - 25%. 

I have completely rebuilt my machine lately with a fresh load of XP SP3.  I installed a fresh copy of studio, obviously, at that time.  I am really at my wits end with this.  My machine is the only one in a shop of 7 developers doing this.

解决方案

Hello,

As to your issue, you can try the following steps to see if they help:

a)     Try to run devenv /ResetSettings (in command prompt) to eliminate the related potential settings problem.

b)     Try disabling Add-ins (e.g. “Tools” | “Add-in Manager”) or run “devenv.exe /SafeMode”.This can eliminate the possibility that third party Add-ins or packages are causing problems. (For more detailed VS command line switches information, see: http://msdn2.microsoft.com/en-us/library/xee0c8y7.aspx )

c)     Try creating a new project. Sometimes corrupted project settings can cause problems. These are project specific.

d)     Make sure that we have the latest service pack applied.

e)     Try to reboot the operating system to safe mode. This can help to isolate whether any other applications are interfering with Visual Studio. Note that some features (like IIS) are not available under safe mode. Please check whether this can be applied or not. In addition to safe mode, we can also try “clean boot”: How to configure Windows XP to start in a "clean boot" state http://support.microsoft.com/kb/310353 .

f)      Try to create a new user account. This can help isolate user profile corruption related causes.

In addition, you could post your issue on the Visual C# General to see if any community members have came across this issue and had any suggestions.

Thanks.


这篇关于Visual Studio 2008在启动时非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆