Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

TempDB usage per active session

By Gianluca Sartori,

Lists the TempDB usage per each active session.
It helps identifying the sessions that use the tempdb heavily with internal objects.

When the internal objects usage is high, the session is probably using big hash tables or spooling in worktables. It could be a symptom of an inefficient plan or a missing index.

Shrinking a TempDB full of internal objects will probably have no effect, because the engine will not release the deallocated space. The only possible alternative to restarting the service, is running DBCC FREESYSTEMCACHE('ALL'), that will clear all cached objects, including not only internal objects, but also cached query plans. Use it carefully on a production server.

Total article views: 9526 | Views in the last 30 days: 40
 
Related Articles
BLOG

TempDB Internals

TempDB Internals: TempDB is very important DB in sql server, generally sql server automatically take...

BLOG

Transaction Log Internals - My session ingredients

Still 18 days to go for my session on Transaction Log Internals for Chennai SQL Server User Group (1...

FORUM

TempDB

Tempdb

FORUM

Connection Pools and Tempdb Internal Objects

Hi I am thinking I know the basics of the problem here, but I want to make sure I know the detail...

BLOG

Tempdb quick notes from Professional SQL Server 2008 internals and troubleshooting

I spent sometime to understand more about tempdb today. posting some key points for our quick refere...

Tags
administration    
dbcc    
tempdb    
 
Contribute