Thursday, 29 March 2012 15:02

Checking database autogrowth settings

Written by 
Rate this item
(2 votes)

Yesterday I was performing a Health Check at a client. One of the checks is looking at the database autogrowth settings. In the operations guide Microsoft states the following about the BizTalk database autogrowth settings:

Pre-allocate space for BizTalk Server databases and define auto-growth settings for BizTalk Server databases to a fixed value instead of a percentage value

  • SQL Server database auto-growth is a blocking operation, which hinders BizTalk Server database performance. Therefore it is important to allocate sufficient space for the BizTalk Server databases in advance to minimize the occurrence of database auto-growth.
  • Database auto-growth should be set to a fixed number of megabytes instead of to a percentage (specify file growth In Megabytes). This should be done so that, if auto-growth occurs, it does so in a measured fashion. This reduces the likelihood of excessive database growth. The growth increment for BizTalk Server databases should generally be no lower than 100 MB.
  • When SQL Server increases the size of a file, it must first initialize the new space before it can be used. This is a blocking operation that involves filling the new space with empty pages. SQL Server 2005 running on Windows Server 2003 or later supports “instant file initialization.” This can greatly reduce the performance impact of a file growth operation. For more information, see Database File Initialization (http://go.microsoft.com/fwlink/?LinkId=132063) in the SQL Server books online. This topic provides steps for enabling instant file initialization.

Source: http://msdn.microsoft.com/en-us/library/ee377048%28v=bts.10%29.aspx

To check the settings I can off course manually look at every BizTalk database, but this is just way too much work :).

 Autogrowth

Running the following query will give you a much faster overview of the database autogrowth settings:

exec sp_MSforeachdb @command1 = 'use [?]; EXEC sp_helpfile'

 Autogrowth query

Read 5327 times Last modified on Thursday, 29 March 2012 15:12
Jeroen Hendriks

Jeroen Hendriks started his career in 2005 as a middleware administrator. One of the products he was responsible for was BizTalk Server 2004. Since that time he mainly focusses on designing, implementing and supporting BizTalk Server infrastructures. Currently he works as a consultant for Axon Olympus. He hopes that his day-to-day experiences will result in useful and practical blog posts. His certifications are MCSE, Certified Ethical Hacker, MCITP: Enterprise Administrator, Server Administrator and Database Administrator 2008.

twitterlinkedin

Website: www.axonolympus.nl

2 comments

  • Comment Link Sandro Pereira Friday, 30 March 2012 12:58 posted by Sandro Pereira

    Great post Jeroen and nice SQL query (I already put into my favorites :)).

    Unfortunately for me I was preparing an identical post, I now have to find another topic, hehe

  • Comment Link Jeroen Hendriks Sunday, 01 April 2012 19:40 posted by Jeroen Hendriks

    I know how you feel. Lex beat me to the Force full backup post.... :)

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.