IT Community - Software Programming, Web Development and Technical Support

How to Free up the cache for an sql server instance

This is a discussion on How to Free up the cache for an sql server instance within the Database Support forums, part of the Web Development category; DBCC FREEPROCCACHE or DBCC FREESYSTEMCACHE (new in SQL 2005) will clear the plan cache on that particular SQL Server instance. ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-23-2008, 07:19 AM
vadivelanshanmugam vadivelanshanmugam is offline
D-Web Trainee
 
Join Date: Jan 2008
Posts: 41
vadivelanshanmugam is on a distinguished road
Default How to Free up the cache for an sql server instance

DBCC FREEPROCCACHE or DBCC FREESYSTEMCACHE (new in SQL 2005) will clear the plan cache on that particular SQL Server instance. Bear in mind clearing the plan cache with this process causes a recompilation of all subsequent execution plans and cause a sudden, temporary excessive CPU usage and decrease in query performance.

DBCC FREESYSTEMCACHE is new in SQL Server 2005 that will clear the unused cache entries from all the caches. You can use 'MARK_IN_USE_FOR_REMOVAL' clause in this DBCC statement to free up the currently used plans from the cache as and when they become unused. This is useful in order to remove them manually even though SQL 2005 Database Engine proactively cleans up unused cache entries in the background to make memory available for current entries.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql key cache write2ashokkumar Database Support 0 10-29-2007 02:33 AM
Load index in cache prasath Database Support 2 10-03-2007 11:36 PM
CACHE INDEX In MySql prasath Database Support 0 09-19-2007 10:49 PM
How can I hide a SQL Server 2005 Instance? oxygen Database Support 1 07-24-2007 05:29 AM
How would you refresh your cache in Java? H2o Java Programming 1 07-24-2007 03:46 AM


All times are GMT -7. The time now is 06:43 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0