dbTalk Databases Forums  

Tempdb grows rapidly and fills up disk space

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Tempdb grows rapidly and fills up disk space in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SQL Server
 
Posts: n/a

Default Tempdb grows rapidly and fills up disk space - 05-09-2006 , 03:47 PM






Hi,

The tempdb file on one of our servers grew very large and used all
available disk space. This is SQL Server 2000 SP4. I have installed
hotfix version 8.00.2187. I opened a profiler trace but can't still get
to the root of the problem. Any help will be appreciated.

Egbon

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Tempdb grows rapidly and fills up disk space - 05-09-2006 , 04:15 PM






SQL Server (anonymous (AT) devdex (DOT) com) writes:
Quote:
The tempdb file on one of our servers grew very large and used all
available disk space. This is SQL Server 2000 SP4. I have installed
hotfix version 8.00.2187. I opened a profiler trace but can't still get
to the root of the problem. Any help will be appreciated.
There are a couple of possible reasons for tempdb filling up. The
most obvious is of course a process that fills up a large temp table.
One way to investigate this, would be to do:

SELECT * FROM tempdb..sysobjects (NOLOCK) WHERE xtype = 'U'

This tells you, if there are any temp tables at all right now. You might
be able to get an idication of sizes by lookin in sysindexes:

SELECT object_name(id), reserved
FROM tempdb..sysindexes (NOLOCK) WHERE indid in (0, 1)

reserved gives you the size in 8192 KB pages. But the numbers may
lag behind and not be accurate.

There are other sources than temp tables: sort operations, cursors,
worktables for queries. These are more difficult to track down.

You could shrink tempdb, and trace for auto-grow events, and see if you
can connect the events to a certain user or host.

By the way, to which size did tempdb grow? How large is your largest
database?

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.