Home All Groups Group Topic Archive Search About

TLog out of control

Author
16 Nov 2006 8:33 PM
cbrichards
I just had a transaction log that was growing at about 2 gigs a minute.

It was growing so fast that we felt we had no choice but to stop and restart
the service.

Part of the problem is that we did not know how to track down what the
problem was before taking the drastic measure of stopping and starting sql
server.

What commands or views should one look at in such a situation. Or is there
anything that can be done now to determine what was causing the problem?

I came across the following link:
http://msdn2.microsoft.com/en-us/library/ms176029.aspx

If you have seen this before, please help. It is quite unnerving.

I am running SQL Server 2005, SP1, on Windows 2003.

--
Message posted via http://www.sqlmonster.com

Author
16 Nov 2006 8:55 PM
Kevin3NF
Tempdb or one of your user databases?

--
Kevin Hill
3NF Consulting
http://www.3nf-inc.com/NewsGroups.htm

Real-world stuff I run across with SQL Server:
http://kevin3nf.blogspot.com


Show quoteHide quote
"cbrichards" <u3288@uwe> wrote in message news:696376658b393@uwe...
>I just had a transaction log that was growing at about 2 gigs a minute.
>
> It was growing so fast that we felt we had no choice but to stop and
> restart
> the service.
>
> Part of the problem is that we did not know how to track down what the
> problem was before taking the drastic measure of stopping and starting sql
> server.
>
> What commands or views should one look at in such a situation. Or is there
> anything that can be done now to determine what was causing the problem?
>
> I came across the following link:
> http://msdn2.microsoft.com/en-us/library/ms176029.aspx
>
> If you have seen this before, please help. It is quite unnerving.
>
> I am running SQL Server 2005, SP1, on Windows 2003.
>
> --
> Message posted via http://www.sqlmonster.com
>
Are all your drivers up to date? click for free checkup

Author
16 Nov 2006 9:28 PM
cbrichards via SQLMonster.com
TempDB was out of control.

Kevin3NF wrote:
Show quoteHide quote
>Tempdb or one of your user databases?
>
>>I just had a transaction log that was growing at about 2 gigs a minute.
>>
>[quoted text clipped - 15 lines]
>>
>> I am running SQL Server 2005, SP1, on Windows 2003.

Author
16 Nov 2006 9:00 PM
David Browne
Show quote Hide quote
"cbrichards" <u3288@uwe> wrote in message news:696376658b393@uwe...
>I just had a transaction log that was growing at about 2 gigs a minute.
>
> It was growing so fast that we felt we had no choice but to stop and
> restart
> the service.
>
> Part of the problem is that we did not know how to track down what the
> problem was before taking the drastic measure of stopping and starting sql
> server.
>
> What commands or views should one look at in such a situation. Or is there
> anything that can be done now to determine what was causing the problem?
>
> I came across the following link:
> http://msdn2.microsoft.com/en-us/library/ms176029.aspx
>
> If you have seen this before, please help. It is quite unnerving.
>
> I am running SQL Server 2005, SP1, on Windows 2003.
>

DMV's can show you what transactions are running and how much log space they
are using.

EG

select
  st.session_id,
  t.transaction_id,
  s.login_name,
  s.status session_status,
  s.cpu_time session_cpu,
  s.logical_reads session_logical_reads,
  s.reads session_reads,
  s.writes session_writes,
  t.database_transaction_log_bytes_used,
  sql_details.text session_current_sql_text
from sys.dm_tran_database_transactions  t
join sys.dm_tran_session_transactions st
  on st.transaction_id = t.transaction_id
join sys.dm_exec_sessions s
  on st.session_id = s.session_id
left join sys.dm_exec_requests req
  on s.session_id = req.session_id
outer apply sys.dm_exec_sql_text(req.sql_handle) sql_details
order by t.database_transaction_log_bytes_used desc

David

Bookmark and Share