Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Autogrowth out of control Expand / Collapse
Author
Message
Posted Monday, December 21, 2009 6:49 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC 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
Posted Monday, December 21, 2009 8:03 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 7:33 AM
Points: 10,193, Visits: 13,122
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
Posted Monday, December 21, 2009 8:26 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC 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
Posted Monday, December 21, 2009 4:07 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 8:31 AM
Points: 4,358, Visits: 9,537
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
Posted Monday, December 21, 2009 6:02 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:36 AM
Points: 35,218, Visits: 31,677
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 "Row-By-Agonizing-Row".

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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #837676
Posted Tuesday, December 22, 2009 1:41 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC 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 »

Add to briefcase

Permissions Expand / Collapse