VS2005 hangs while refreshing vault status
Moderator: SourceGear
VS2005 hangs while refreshing vault status
We're using Vault 4.1.4 (18402) with Visual Studio 2005 SP1 on both XP SP3 and Vista SP1. The server and clients are on a high speed local network. The server is a quad 3.8Ghz Xeon server, 15K SCSI drives, 4GB and hardly any usage except for Vault. Clients are all dual 3.6Ghz Xeons with 4GB.
Every minute or two Visual Studio freezes with the following message in the lower left corner:
"Refreshing vault status..."
This often happens while navigating through code, highlighting code, or adding/editing code. It's extremely frustrating because it happens so often. I ran all the standard performance fixes on the server, defragged the drive, rebuilt the SQL indexes, etc.
How can I either (1) stop Vault from constantly refreshing, (2) make Vault refresh faster, or (3) keep VS from freezing while refreshing?
Every minute or two Visual Studio freezes with the following message in the lower left corner:
"Refreshing vault status..."
This often happens while navigating through code, highlighting code, or adding/editing code. It's extremely frustrating because it happens so often. I ran all the standard performance fixes on the server, defragged the drive, rebuilt the SQL indexes, etc.
How can I either (1) stop Vault from constantly refreshing, (2) make Vault refresh faster, or (3) keep VS from freezing while refreshing?
Re: VS2005 hangs while refreshing vault status
In the Vault GUI client under Tools -> Options -> Network Settings, check the box "Request database delta on repository cache miss." Or, if it is already checked uncheck it.
Does that make a difference?
Does that make a difference?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: VS2005 hangs while refreshing vault status
I and my lead dev get the same problem, and the suggested change didn't fix it. Any other suggestions?
Re: VS2005 hangs while refreshing vault status
We'll need to see some logging to determine what's going on.
Enable client-side logging
http://support.sourcegear.com/viewtopic.php?t=1534
I'll also want to see a copy of the Vault server log for the same time period. The Vault server log is sgvault.log and is in %windir%\temp\sgvault on the server machine.
Send them zipped up to support at sourcegear.com, Attn: Linda.
Enable client-side logging
http://support.sourcegear.com/viewtopic.php?t=1534
I'll also want to see a copy of the Vault server log for the same time period. The Vault server log is sgvault.log and is in %windir%\temp\sgvault on the server machine.
Send them zipped up to support at sourcegear.com, Attn: Linda.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: VS2005 hangs while refreshing vault status
The original poster asked if they could change the frequency or turn off that refresh, and we never answered that. You can.
In Visual Studio, this option is under Tools|Options|Source Control|Vault Options|Advanced Options.
In Visual Studio, this option is under Tools|Options|Source Control|Vault Options|Advanced Options.
- Attachments
-
- GeneralOptions.PNG (39.82 KiB) Viewed 12570 times
Ian Olsen
SourceGear
SourceGear
Re: VS2005 hangs while refreshing vault status
Thanks, Ian. Worked perfectly.
Re: VS2005 hangs while refreshing vault status
Thanks for the update.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 1
- Joined: Tue Dec 30, 2008 4:56 pm
Re: VS2005 hangs while refreshing vault status
Linda, do you still need logs?
I have the same issue (Visual Studio being non-responsive for minutes at a time then getting the 'refreshing Vault status') and it is a good temporary fix to turn off the auto-refresh. Alas, that is a fixing the symptom, not the cause. Why is the Visual Studio pausing for minutes at a time?
I have the same issue (Visual Studio being non-responsive for minutes at a time then getting the 'refreshing Vault status') and it is a good temporary fix to turn off the auto-refresh. Alas, that is a fixing the symptom, not the cause. Why is the Visual Studio pausing for minutes at a time?
Re: VS2005 hangs while refreshing vault status
If it's not too big a pain to get us the logs, I'd love to see what's going on for people reporting this problem. If you don't want to attach them here, you can email them to ian at sourcegear dot com.
Ian Olsen
SourceGear
SourceGear
Re: VS2005 hangs while refreshing vault status
Logs have been submitted via e-mail to ian @ sourcegear dot com.
Re: VS2005 hangs while refreshing vault status
If you turn off the automatic refresh (clear the checkbox in the dialog shown earlier in this thread), does the delay go away?
(You need to log out/in for this to take effect. Restarting Visual Studio is the best way to make sure you've done that.)
(You need to log out/in for this to take effect. Restarting Visual Studio is the best way to make sure you've done that.)
Ian Olsen
SourceGear
SourceGear
Re: VS2005 hangs while refreshing vault status
Automatic refresh was already turned off.
Re: VS2005 hangs while refreshing vault status
Strange. What I see in the log is perpetual refreshes during the non-responsive periods you indicated. Each refresh takes roughly 1 second, but they're occurring one after another for periods that perfectly coincide with when you say VS was frozen.
I'm not sure why this would ever happen, much less when the automatic refresh is turned off completely. I'll have to investigate some.
It looks like your were debugging just before some of the non-responsive periods. I'll start there, in terms of reproducing the problem.
You also mentioned a SOAP error, but I don't see that in the logs. Do you have any more information about that? What did the dialog say?
I'm not sure why this would ever happen, much less when the automatic refresh is turned off completely. I'll have to investigate some.
It looks like your were debugging just before some of the non-responsive periods. I'll start there, in terms of reproducing the problem.
You also mentioned a SOAP error, but I don't see that in the logs. Do you have any more information about that? What did the dialog say?
Ian Olsen
SourceGear
SourceGear
Re: VS2005 hangs while refreshing vault status
The SoapException generated isn't really an error. It's a business rule validation that failed in our web service. That's how the web service notifies the client of certain errors. I've seen this behavior when other types of exceptions are thrown. I don't think it's web service specific.
Let me know if you need me to try anything else on our end.
Let me know if you need me to try anything else on our end.
Re: VS2005 hangs while refreshing vault status
I see. I'm actually seeing incredibly frequent refreshes throughout the log, even during periods you didn't say were nonresponsive.
To help me narrow the possibilities, would you try this? Turn the auto-refresh back on, but set the interval high, to something like 120 minutes (and restart VS). Does that make any difference?
To help me narrow the possibilities, would you try this? Turn the auto-refresh back on, but set the interval high, to something like 120 minutes (and restart VS). Does that make any difference?
Ian Olsen
SourceGear
SourceGear