Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 General Discussion
»
Autogrowth out of control
Autogrowth out of control
Rate Topic
Display Mode
Topic Options
Author
Message
alan.nichol
alan.nichol
Posted Monday, December 21, 2009 6:49 AM
SSC Rookie
Group: General Forum Members
Last Login: Monday, January 31, 2011 1:43 AM
Points: 27,
Visits: 85
Although I have googled this, I can't seemed to find any real explanation except that it is a know fault and it is fixed with SQL 2005 Service Pack 3.
I applied SQL SERVER 2003 SP2 and SQL 2005 SP3 over last weekend, however, this morning it ran away again.
I can get round it, short term, by first restarting the SQL service and then issuing the following command:
ALTER DATABASE [database name]MODIFY FILE ( NAME = N'[database name]_dat', FILEGROWTH = 100mb)
This gets round it as I said but after a while, off it goes.
The database is very large, some 350gb and when the problems occur it takes up all of the 750gb space made available for it.
Can anyone throw any more light on this please?
Thanks
Post #837133
Jack Corbett
Jack Corbett
Posted Monday, December 21, 2009 8:03 AM
SSChampion
Group: General Forum Members
Last Login: Friday, May 17, 2013 12:22 PM
Points: 10,571,
Visits: 11,871
Is it the database file or the log file that is growing out of control?
What is the recovery model of the database?
What is happening in the database when the autogrowth occurs? You may need a server-side trace to find this. You may be able to see it in the default trace if the growth is caused by object creation.
Jack Corbett
Applications Developer
Don't let the good be the enemy of the best. --
Paul Fleming
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #837205
alan.nichol
alan.nichol
Posted Monday, December 21, 2009 8:26 AM
SSC Rookie
Group: General Forum Members
Last Login: Monday, January 31, 2011 1:43 AM
Points: 27,
Visits: 85
Thanks for your reply
The Recovery Model is simple.
There is no defined (or we can't catch it) reason why it should go like this. It is part of a cluster with one server active all the time and the second is used for fail over, and has two SAN drives.
One drive has the database on, currently standing at 384gb with an allocated space of 750gb. The sedond is the QUORUM.
When it happens it just goes wild. When I
restart
the SQL service it settles down, but with a second of two off it goes again.
When I issue the ALTER DATABASE command it does not necessarily work straight away, I may have to issue it several times before it takes.
Once it is reset, it stays stable for a while, but once again, there does not appear to be any one thing that starts it off.
I hope this makes sense...
Post #837217
Jeffrey Williams 3188
Jeffrey Williams 3188
Posted Monday, December 21, 2009 4:07 PM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Friday, May 17, 2013 11:21 AM
Points: 4,317,
Visits: 9,216
As I think you are already aware - there was an issue with the autogrow setting being converted to a very large number. If you have already patched beyond that point, then the only other reason that the autogrow setting could change is if some process is changing it.
Also, be aware that a database will only grow when it has run out of space and it needs more space. If your database is growing, then you must have a process running that needs additional space available - causing the autogrow event to occur.
What I do is make sure the autogrow setting is a much higher value than 100mb. With instant initialization available and a 380GB database, I would set my autogrow to at least 5000MB - then I would manually grow the file to maintain at least 20% (or 6 months, whichever is larger) of data space available in the data file. I then monitor the database on a regular basis and schedule time to manually grow the file as needed.
Jeffrey Williams
Problems are opportunites brilliantly disguised as insurmountable obstacles.
How to post questions to get better answers faster
Managing Transaction Logs
Post #837630
Jeff Moden
Jeff Moden
Posted Monday, December 21, 2009 6:02 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 7:51 PM
Points: 32,910,
Visits: 26,800
Before you set autogrow to anything, you need to find out what is causing the autogrowth. Like you've said, you've probably patched beyond the point of the fault. Now, you need to trap what is causing the autogrowth. Setup a profile trace to check for autogrowth and find out which stored procedure or SQL that's causing the growth. Dollars to donuts it's some stored proc or GUI generated script being used for reporting and it either has an accidental cross join or some many-to-many join in it which is just as bad.
For goodness sake, don't ever set outgrowth to 5000 MB.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #837676
alan.nichol
alan.nichol
Posted Tuesday, December 22, 2009 1:41 AM
SSC Rookie
Group: General Forum Members
Last Login: Monday, January 31, 2011 1:43 AM
Points: 27,
Visits: 85
Thanks for all the replies. I will take note of all suggestions and will keep you up to date as to what happens.
Just one more thging, this Autogrowth to 12800% seems to have been around for a while, has no one else hrdard of this occurrence?
Thanks once again and have a Merry Xmas (for those who ecelebraete) and a great 2010
Post #837781
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.