Showing posts with label autogrow. Show all posts
Showing posts with label autogrow. Show all posts

Monday, March 19, 2012

Back up the transaction log for the database to free up some log s

I have a server with 80 GB free space. Logfile for the database is set to
autogrow (10%), unrestricted. The log file itself is right now about 25 MB.
This message can't be accurate, so I'm wondering what could cause this.
There was no activity that would cause the logfile to grow, certainly not 80
GB.
I've seen this intermittently, no standard, easily reproducible cause. In
this particular case, I was doing a defrag of the file system, and trying to
parse a query in an SSIS package.
I've googled this (of course) and found a few people who've seen similar
error messages with large amounts of free space, but nothing conclusive.
TIA
jdnIt is probably because your log file is so small and can't hold all the
transactions you are trying to put into it. That will force an autogrow. IF
the file can not grow fast enough you can get a timeout and this message.
Always keep plenty of free space in both the log and data files. And most
importantly do not turn on AutoShrink or run any jobs to shrink the files.
So grow your log file to a size that is large enough to hold all the
transactions you will do in the time period between the log backups and
leave it there. Also change the growth for a % to a fixed size of say40 or
50MB (your mileage may vary).
--
Andrew J. Kelly SQL MVP
"jdn" <jdn@.discussions.microsoft.com> wrote in message
news:AD74E005-810D-42E0-8704-F56C0157CD2E@.microsoft.com...
>I have a server with 80 GB free space. Logfile for the database is set to
> autogrow (10%), unrestricted. The log file itself is right now about 25
> MB.
> This message can't be accurate, so I'm wondering what could cause this.
> There was no activity that would cause the logfile to grow, certainly not
> 80
> GB.
> I've seen this intermittently, no standard, easily reproducible cause. In
> this particular case, I was doing a defrag of the file system, and trying
> to
> parse a query in an SSIS package.
> I've googled this (of course) and found a few people who've seen similar
> error messages with large amounts of free space, but nothing conclusive.
> TIA
> jdn|||Well, that makes as much sense as anything else I've read. We'll set that up
and see if the error recurs.
Thanks.
jdn
"Andrew J. Kelly" wrote:
> It is probably because your log file is so small and can't hold all the
> transactions you are trying to put into it. That will force an autogrow. IF
> the file can not grow fast enough you can get a timeout and this message.
> Always keep plenty of free space in both the log and data files. And most
> importantly do not turn on AutoShrink or run any jobs to shrink the files.
> So grow your log file to a size that is large enough to hold all the
> transactions you will do in the time period between the log backups and
> leave it there. Also change the growth for a % to a fixed size of say40 or
> 50MB (your mileage may vary).
> --
> Andrew J. Kelly SQL MVP
>
> "jdn" <jdn@.discussions.microsoft.com> wrote in message
> news:AD74E005-810D-42E0-8704-F56C0157CD2E@.microsoft.com...
> >I have a server with 80 GB free space. Logfile for the database is set to
> > autogrow (10%), unrestricted. The log file itself is right now about 25
> > MB.
> >
> > This message can't be accurate, so I'm wondering what could cause this.
> > There was no activity that would cause the logfile to grow, certainly not
> > 80
> > GB.
> >
> > I've seen this intermittently, no standard, easily reproducible cause. In
> > this particular case, I was doing a defrag of the file system, and trying
> > to
> > parse a query in an SSIS package.
> >
> > I've googled this (of course) and found a few people who've seen similar
> > error messages with large amounts of free space, but nothing conclusive.
> >
> > TIA
> > jdn
>
>

Sunday, February 12, 2012

Autoshrink and Autogrow

I have a large number of databases on a couple of heavily
utilized production 2000 servers (about 80 on one and
about 120 on another). Both servers hung mysteriously
last week and one of them had the following error:
"WARNING: EC 859eb5c8, 0 waited 300 sec. on latch a04e98.
Not a BUF latch."
The KB (310834) says this is from an overstressed system,
however my perf mon stats do not show this (unless context
switching greater > 5,000 for sustained periods is a
problem). But that same KB article says that
autogrow/autoshrink can be responsible and due to space
limitations, I have the autoshrink on all db's. So here
are my questions:
1. How can I monitor autogrow and autoshrink?
2. How can I tell how much cpu and disk they're using?
3. What is an acceptable threshold for context switching
for a four cpu server?
Why on earth do you have autoshrink enabled?
http://www.aspfaq.com/
(Reverse address to reply.)

> 1. How can I monitor autogrow and autoshrink?
> 2. How can I tell how much cpu and disk they're using?
> 3. What is an acceptable threshold for context switching
> for a four cpu server?
|||Space. They wouldn't get me more space so I kept having
drives filling up. I finally talked them into getting me
more space on one of the servers and just did a
migration. I of course am about take all the autoshrinks
off on that server.
But on the other server where I am still struggling with
space issues, I am looking for "fuel" to get them to get
me more space. That's part of why I'd like to monitor the
server and show them the effect (besides fragmentation of
course) that this is having on the server.
How can I show them that?

>--Original Message--
>Why on earth do you have autoshrink enabled?
>--
>http://www.aspfaq.com/
>(Reverse address to reply.)
>
>
>.
>
|||Well, you can have a trace running with minimal events (e.g.
autogrow/autoshrink) and capture the duration / cpu usage of those specific
events. Have you ever used Profiler?
http://www.aspfaq.com/
(Reverse address to reply.)
"Art" <anonymous@.discussions.microsoft.com> wrote in message
news:008f01c4a63b$41f93970$a301280a@.phx.gbl...[vbcol=seagreen]
> Space. They wouldn't get me more space so I kept having
> drives filling up. I finally talked them into getting me
> more space on one of the servers and just did a
> migration. I of course am about take all the autoshrinks
> off on that server.
> But on the other server where I am still struggling with
> space issues, I am looking for "fuel" to get them to get
> me more space. That's part of why I'd like to monitor the
> server and show them the effect (besides fragmentation of
> course) that this is having on the server.
> How can I show them that?
|||Here's some ammunition:
http://www.karaszi.com/SQLServer/info_dont_shrink.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Art" <anonymous@.discussions.microsoft.com> wrote in message
news:008f01c4a63b$41f93970$a301280a@.phx.gbl...[vbcol=seagreen]
> Space. They wouldn't get me more space so I kept having
> drives filling up. I finally talked them into getting me
> more space on one of the servers and just did a
> migration. I of course am about take all the autoshrinks
> off on that server.
> But on the other server where I am still struggling with
> space issues, I am looking for "fuel" to get them to get
> me more space. That's part of why I'd like to monitor the
> server and show them the effect (besides fragmentation of
> course) that this is having on the server.
> How can I show them that?

Autoshrink and Autogrow

I have a large number of databases on a couple of heavily
utilized production 2000 servers (about 80 on one and
about 120 on another). Both servers hung mysteriously
last week and one of them had the following error:
"WARNING: EC 859eb5c8, 0 waited 300 sec. on latch a04e98.
Not a BUF latch."
The KB (310834) says this is from an overstressed system,
however my perf mon stats do not show this (unless context
switching greater > 5,000 for sustained periods is a
problem). But that same KB article says that
autogrow/autoshrink can be responsible and due to space
limitations, I have the autoshrink on all db's. So here
are my questions:
1. How can I monitor autogrow and autoshrink?
2. How can I tell how much cpu and disk they're using?
3. What is an acceptable threshold for context switching
for a four cpu server?Why on earth do you have autoshrink enabled?
--
http://www.aspfaq.com/
(Reverse address to reply.)
> 1. How can I monitor autogrow and autoshrink?
> 2. How can I tell how much cpu and disk they're using?
> 3. What is an acceptable threshold for context switching
> for a four cpu server?|||Space. They wouldn't get me more space so I kept having
drives filling up. I finally talked them into getting me
more space on one of the servers and just did a
migration. I of course am about take all the autoshrinks
off on that server.
But on the other server where I am still struggling with
space issues, I am looking for "fuel" to get them to get
me more space. That's part of why I'd like to monitor the
server and show them the effect (besides fragmentation of
course) that this is having on the server.
How can I show them that?
>--Original Message--
>Why on earth do you have autoshrink enabled?
>--
>http://www.aspfaq.com/
>(Reverse address to reply.)
>
>> 1. How can I monitor autogrow and autoshrink?
>> 2. How can I tell how much cpu and disk they're using?
>> 3. What is an acceptable threshold for context switching
>> for a four cpu server?
>
>.
>|||Well, you can have a trace running with minimal events (e.g.
autogrow/autoshrink) and capture the duration / cpu usage of those specific
events. Have you ever used Profiler?
--
http://www.aspfaq.com/
(Reverse address to reply.)
"Art" <anonymous@.discussions.microsoft.com> wrote in message
news:008f01c4a63b$41f93970$a301280a@.phx.gbl...
> Space. They wouldn't get me more space so I kept having
> drives filling up. I finally talked them into getting me
> more space on one of the servers and just did a
> migration. I of course am about take all the autoshrinks
> off on that server.
> But on the other server where I am still struggling with
> space issues, I am looking for "fuel" to get them to get
> me more space. That's part of why I'd like to monitor the
> server and show them the effect (besides fragmentation of
> course) that this is having on the server.
> How can I show them that?
> >--Original Message--
> >Why on earth do you have autoshrink enabled?
> >
> >--
> >http://www.aspfaq.com/
> >(Reverse address to reply.)
> >
> >
> >
> >> 1. How can I monitor autogrow and autoshrink?
> >> 2. How can I tell how much cpu and disk they're using?
> >> 3. What is an acceptable threshold for context switching
> >> for a four cpu server?
> >
> >
> >.
> >|||Here's some ammunition:
http://www.karaszi.com/SQLServer/info_dont_shrink.asp
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Art" <anonymous@.discussions.microsoft.com> wrote in message
news:008f01c4a63b$41f93970$a301280a@.phx.gbl...
> Space. They wouldn't get me more space so I kept having
> drives filling up. I finally talked them into getting me
> more space on one of the servers and just did a
> migration. I of course am about take all the autoshrinks
> off on that server.
> But on the other server where I am still struggling with
> space issues, I am looking for "fuel" to get them to get
> me more space. That's part of why I'd like to monitor the
> server and show them the effect (besides fragmentation of
> course) that this is having on the server.
> How can I show them that?
>>--Original Message--
>>Why on earth do you have autoshrink enabled?
>>--
>>http://www.aspfaq.com/
>>(Reverse address to reply.)
>>
>> 1. How can I monitor autogrow and autoshrink?
>> 2. How can I tell how much cpu and disk they're using?
>> 3. What is an acceptable threshold for context switching
>> for a four cpu server?
>>
>>.