Home All Groups Group Topic Archive Search About

transaction log growing very quickly

Author
27 Nov 2007 4:56 AM
Chris
About 4 days ago (ish) our db's transaction log was about 3 GB and growing
fairly slowly. Right now it's 23 GB and growing extremely quickly. There
hasn't been an increase in the amount of DB traffic on our server and I'm
sure something is wrong. How can I find out what is causing it to grow?

Chris

Author
27 Nov 2007 5:52 AM
bass_player [SBS-MVP]
You can use SQL Profiler to capture the application that is hitting your
database.  You can also try this KB
http://support.microsoft.com/kb/283784


Show quote
"Chris" <f***@email.com> wrote in message
news:69642002-46E4-4F8F-869A-63EE1D80C024@microsoft.com...
> About 4 days ago (ish) our db's transaction log was about 3 GB and growing
> fairly slowly. Right now it's 23 GB and growing extremely quickly. There
> hasn't been an increase in the amount of DB traffic on our server and I'm
> sure something is wrong. How can I find out what is causing it to grow?
>
> Chris
Author
27 Nov 2007 6:46 AM
Uri Dimant
Chris
What is RECOVERY mode of the database? Is it FULL? If it is you have to
start backup LOG file , I would also suggest you read and understand about
RECOVERY models and its impacts on the database in the BOL .





Show quote
"Chris" <f***@email.com> wrote in message
news:69642002-46E4-4F8F-869A-63EE1D80C024@microsoft.com...
> About 4 days ago (ish) our db's transaction log was about 3 GB and growing
> fairly slowly. Right now it's 23 GB and growing extremely quickly. There
> hasn't been an increase in the amount of DB traffic on our server and I'm
> sure something is wrong. How can I find out what is causing it to grow?
>
> Chris
Author
27 Nov 2007 11:43 AM
thejamie
I've noted that logs grow exponentially when someone kicks off a large
data-intensive query and then cancels.  If you don't need the FULL option,
switch to the SIMPLE option for the database which will truncate the logs
when a full backup runs.  Using the profiler as mentioned by bass_player also
is a good start. 
--
Regards,
Jamie


Show quote
"Chris" wrote:

> About 4 days ago (ish) our db's transaction log was about 3 GB and growing
> fairly slowly. Right now it's 23 GB and growing extremely quickly. There
> hasn't been an increase in the amount of DB traffic on our server and I'm
> sure something is wrong. How can I find out what is causing it to grow?
>
> Chris
>
Author
27 Nov 2007 6:40 PM
TheSQLGuru
run sp_who2 active.  look for spids with extremely large I/O and/or CPU

then run dbcc inputbuffer(spid) to see what code is executing.

only spids > 50 are to be evaluated.  low spids are system processes.

--
Kevin G. Boles
TheSQLGuru
Indicium Resources, Inc.


Show quote
"Chris" <f***@email.com> wrote in message
news:69642002-46E4-4F8F-869A-63EE1D80C024@microsoft.com...
> About 4 days ago (ish) our db's transaction log was about 3 GB and growing
> fairly slowly. Right now it's 23 GB and growing extremely quickly. There
> hasn't been an increase in the amount of DB traffic on our server and I'm
> sure something is wrong. How can I find out what is causing it to grow?
>
> Chris

AddThis Social Bookmark Button