How big is your procedure cache?
There have been continuing reports by most people I
speak to about theire procedure cache becoming huge. Especially on 64 bit
systems with lots of memory. Memory that you want for your data.
The issue is due to the storinging of compiled adhoc plans. They just aren't
getting aged out of the cache.
We are lobbying for there to be a way of limitiing the size of the procedure
cache. If I have 8Gb of memory I don't want 2 Gb to be used by the procedure
cache. If you agree please vote on it here
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=293188
So you don't think it applies to you. I bet you will be suprised, run
select
name, SUM(single_pages_kb
+
multi_pages_kb)/1024.0
MBUsed
from
sys.dm_os_memory_clerks
group
by name
order
by 2 desc
and see how many MB is used by SQLPlans
Generate the scripts for a database and see what the difference is, I am sure
you will be suprised.
You will also find that many of Microsoft tools that don't provide
parameterised queries also cause the problem
Vote now your database needs you
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=293188
-