SGVault DB is growing HUGE
Moderator: SourceGear
SGVault DB is growing HUGE
Hello,
We've been having issues connecting to Vault for the past couple of days. I logged on to our server and noticed that we were out of disk space on the server where the vault DB is hosted. It turns out that it's because of the Vault DB. sgvault.mdf is around 20 Gigs which seems about right. But the sgvault_log.ldf file is nearly 40 Gigs. Is there something in particular that can cause this or some periodic maintenance that we should be doing to avoid it?
By the way, we are running Vault 3.1.8 on SQl 2005.
Thanks,
Tom
We've been having issues connecting to Vault for the past couple of days. I logged on to our server and noticed that we were out of disk space on the server where the vault DB is hosted. It turns out that it's because of the Vault DB. sgvault.mdf is around 20 Gigs which seems about right. But the sgvault_log.ldf file is nearly 40 Gigs. Is there something in particular that can cause this or some periodic maintenance that we should be doing to avoid it?
By the way, we are running Vault 3.1.8 on SQl 2005.
Thanks,
Tom
Backing up the DB and truncating the logs was just the ticket...thanks.
However, it appears we are still having issues. I can connect to Vault and it seems to retrieve the repository structure fairly quickly, but when I attempt to actually perform an operation (for instance checking out a file) it takes several minutes or hangs and never completes at all.
Any idea what might be happening?
Thanks,
Tom
However, it appears we are still having issues. I can connect to Vault and it seems to retrieve the repository structure fairly quickly, but when I attempt to actually perform an operation (for instance checking out a file) it takes several minutes or hangs and never completes at all.
Any idea what might be happening?
Thanks,
Tom
Change the recovery profile to simple. The log file is then erased after a successful commit. Presently, it appears that the db is logging every transaction (this is the default on new db's in SQL). Great if you are an international bank. Not so great for source control.
lost...but making good time.
I repeated this post for emphasis, not because I didn't read the threadjclausius wrote:Check your Recovery Model within SQL Server.
If you are not making nightly backups of the log file, place the sgvault database in simple recovery mode, but still make sure you make regular backups.
lost...but making good time.
Truncating the db is different than setting the recovery model.
To confirm, the recovery model is set to simple? If so, then there appears to be a huge commit taking place as the log file grows as needed to handle the data for the commit. Is someone inadvertantly commiting an entire server to source control?
To confirm, the recovery model is set to simple? If so, then there appears to be a huge commit taking place as the log file grows as needed to handle the data for the commit. Is someone inadvertantly commiting an entire server to source control?
lost...but making good time.
I don't think you're understanding what I'm trying to tell you. The log file isn't growing through normal use. It grew 17 Gigs over the course of one hour with a single attempted transaction (a checkout of a single small file) from 1 user. That transaction hung. No one else is using the vault service at this time.
I will change the recovery model to simple and backup again to truncate the log again as you suggest. But I suspect I'll still have the same inability to conduct business through Vault as before albeit with a smaller log file.
I will change the recovery model to simple and backup again to truncate the log again as you suggest. But I suspect I'll still have the same inability to conduct business through Vault as before albeit with a smaller log file.
Sorry, didn't see your last reply there. I am the only one using Vault at the moment. I attempted to change over to Simple Recovery, but now the database says "(In Recovery)" next to it in SQL Management Studio so I have to wait until it's done to do anything.
Could this be an issue with my local cache perhaps? The only operations I attempted were two check outs of individual files.
Could this be an issue with my local cache perhaps? The only operations I attempted were two check outs of individual files.
Is there any indication of what may be happening in the Vault Server Log ?
If nothing is there, you may want to use the Admin Tool and place the Server Log into Debug Mode to gather more data on what may be happening.
If nothing is there, you may want to use the Admin Tool and place the Server Log into Debug Mode to gather more data on what may be happening.
Jeff Clausius
SourceGear
SourceGear