开发者

Visual Studio 2010 Periodically Hangs for Several Seconds

I'm having a problem where V开发者_如何学编程S2010 Ultimate is freezing up every so often for several seconds before returning to normal operation. This happens several times during a session, and is obviously very annoying. I haven't been able to pin it down to any specific activity-- it seems to hang whenever I scroll around in a document, open/create a document, basically anything. Anyone else have this issue or know what might be the cause?


Incompatible add-ons or system configurations can cause Visual Studio issues (performance issue, error, etc).

Fortunately we can try to troubleshoot the issues by referring to the Visual Studio activity log.

Simply run the following command to run Visual Studio 2010 and log its all activities.

DevEnv.exe /log

The log file will be generated to:

XP

%USERPROFILE%\Application Data\Microsoft\Visual Studio\10.0\ActivityLog.xml

Vista & Windows 7

%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml

 
Once you run it, 2 files will be generated: ActivityLog.xml and ActivityLog.xsl

And when you open the ActivityLog.xml, it will contain something like this:

Visual Studio 2010 Periodically Hangs for Several Seconds


The problem was solved by deleting the user options file called SolutionName.suo.

Somehow it had gotten very big and probably corrupted. You will only lose your breakpoints and open files as far as I know, but rename it to be safe.


I know people have had problems with computers that are older or don't have as much RAM. I know my use of VS 2010 ultimate can run to 500 MB's sometimes and if you don't have enough RAM, then it will hang for a little.


I've had issues with VS2010 when debugging is running or if I'm opening files from a network drive. I'm not sure as I currently don't have any team server repos connected, but if you do maybe the connection to the repo might be an issue as well.


Turns out the issue was network related. One item in my solution was looking to a mapped network drive, which apparently didn't always respond fast enough.


My solution for that problem was beyond the scope of my thinking. I found it on this website, and it goes like:

Launch Internet Explorer. Go to Internet Options, then Advanced tab. Under the Security group, untick “Check for server certificate revocation“. You may need to restart Visual Studio.

My scenario is that I have network drives with references mapped via VPN. That should have to do with that.


I faced similar issue with Visual Studio 2008. I have not thoroughly investigated the issue though. Reading your post it seems the behavior at your PC is really annoying, but for me it's not that frequent.

One thing I noticed, the frequency at which this happens is dependent on the RAM size and time elapsed since last setup. I came to this conclusion seeing the performance of machines of my colleagues.


I noticed that my anti-virus software tends to lock down my entire system sometimes. If you have an anti-virus application, you might try disabling it for a moment to see if it is the culprit.


I had a similar issue - that still happened after a /resetsettings, reinstall and using /safemode. For me, the issue was that Assembly Binding logging was turned on ago and I forgot to turn it off, it got to the stage where the log files concerned were >200MB and each append was taking ages...

Managed to find the issue with procmon from sysinternals. Suggest that anyone who comes across a similar issue tries procmon if none of the above solutions help.


My VS2010 would hang as well in a similar fashion. DevEnv.exe /log would indicate it failed to load strings around the time it would hang. Reinstalling VS2010 SP1 and deinstalling Resharper to install Resharper 7.1.3 solved the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜