March 3, 2014 at 11:37 am
how do we estimate/calculate procedure cache usage
March 3, 2014 at 12:41 pm
mxy (3/3/2014)
how do we estimate/calculate procedure cache usage
Use this query ..
SELECT name,
[MB used] = SUM(single_pages_kb + multi_pages_kb)/1024.0
FROM sys.dm_os_memory_clerks
WHERE name IN (
N'Object Plans', -- Procedures, triggers, etc
N'SQL Plans' -- Ad-hoc stuff
)
GROUP BY
name
ORDER BY
[MB used] DESC;
By the way, is the system 32 bit or 64 bit ?
--
SQLBuddy
March 3, 2014 at 1:49 pm
thanks
its 64 bit will it matter
how to calculate Data Cache usage
March 3, 2014 at 1:59 pm
mxy (3/3/2014)
thanksits 64 bit will it matter
how to calculate Data Cache usage
Procedure Cache Bloating is an issue with 32 bit systems. 64 bit systems should be fine.
select db_name(database_id) as dbName, count(*)*8/1024
as BufferPoolMB from sys.dm_os_buffer_descriptors
group by db_name(database_id)
order by 2 desc
--
SQLBuddy
March 3, 2014 at 2:06 pm
thanks SQL buddy can we calculate procedure cache @db level
March 3, 2014 at 2:31 pm
Unfortunately,no..:(
--
SQLBuddy
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply