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

The log file for database 'tempdb' is full Expand / Collapse
Author
Message
Posted Monday, August 18, 2014 8:23 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Monday, August 18, 2014 10:12 AM
Points: 750, Visits: 1,556


Running SQL Server 2000 SP4 and I started getting these errors in my log several days ago.

The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6

Free space on the drive where the Tempdb data and log files reside is at 24GB free.

Tempdb is in Simple mode recovery

TempDB datafile is 3226240 KB with autorgow by increments of 10% (no limit) and autoshrink off
TempDB logfile is 48512 KB with autogrow by increments of 10% (no limit) and autoshrink off

Any help or guidance would be greatly appreciated!!



Post #1604472
Posted Monday, August 18, 2014 8:33 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 5:20 PM
Points: 17,600, Visits: 15,462
Jpotucek (8/18/2014)


Running SQL Server 2000 SP4 and I started getting these errors in my log several days ago.

The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6

Free space on the drive where the Tempdb data and log files reside is at 24GB free.

Tempdb is in Simple mode recovery

TempDB datafile is 3226240 KB with autorgow by increments of 10% (no limit) and autoshrink off
TempDB logfile is 48512 KB with autogrow by increments of 10% (no limit) and autoshrink off

Any help or guidance would be greatly appreciated!!


Your log file for tempdb is only 47.5 MB and growing in increments of 10%. When you hit 47.5 MB of log use, you will receive that error message. The log will grow by it's 10% as many times as is needed to allow that transaction using tempdb to clear. Then the log will checkpoint and truncate.
If you want to reduce the errors being received, grow your log file to 256 MB. I would also change the growth increments to something like 32 MB or 64 MB.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1604477
Posted Monday, August 18, 2014 9:03 AM


SSC-Dedicated

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

Group: Administrators
Last Login: Today @ 12:11 PM
Points: 31,018, Visits: 15,455
I'd agree with Jason. Enlarge your tempdb log. 47MB is small and space is relatively cheap. It's not worth these errors.

I'd probably grow to 1GB and monitor the space usage in the log. Find your peak, add a small pad and then set it to that size.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1604495
Posted Monday, August 18, 2014 9:14 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Monday, August 18, 2014 10:12 AM
Points: 750, Visits: 1,556
Thank you! turns out the Model Database has an initial size of 1MB (data) and 4mb (log) so when our Server is rebooted once a month I'm thinking that the TEMPDB is recreated with these tiny settings.. I'll change in both places.

Another related question.. last night I had a problem accessing one of the databases on this production server and the errors in the log were this:

SQL Server has encountered 931 occurrence(s) of IO requests taking longer than 15 seconds to complete on file [E:\MYDB_Data.MDF] in database [MyDB] (7). The OS file handle is 0x00000390. The offset of the latest long IO is: 0x0000073aa66000

Transaction (Process ID 10) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

followed by this:

Error: 9002, Severity: 17, State: 6
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..

Do you think the 2 are related????



Post #1604506
Posted Monday, August 18, 2014 9:19 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 5:20 PM
Points: 17,600, Visits: 15,462
It's possible they are related.

Big transaction, running on slow disk, and getting deadlocked.

The IO errors could also be due to the wait for the transaction log to grow.

Hard to say without knowing what the queries are that were involved in all three errors/warnings that you displayed.

The deadlocks could be related to slow IO. They could be related to bad indexes. They most probably are related to bad queries (which could cause tempdb log use, could cause slow IO etc etc).

Find the queries involved in those errors, and then evaluate them to determine the causality of the errors.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1604512
Posted Monday, August 18, 2014 9:22 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Monday, August 18, 2014 10:12 AM
Points: 750, Visits: 1,556
Thank you very much!


Post #1604513
Posted Monday, August 18, 2014 9:37 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 5:20 PM
Points: 17,600, Visits: 15,462
Jpotucek (8/18/2014)
Thank you very much!


You're welcome.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1604520
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse