DEFINITIONS

Definitions More Info.
Definition ID671
TitleSQL
CategoryNOTES
DefinitionReturning the memory breakdown of all cached compiled plans
Definition DescriptionReturning the memory breakdown of all cached compiled plans The following example returns a breakdown of the memory used by all compiled plans in the cache SELECT plan_handle, ecp.memory_object_address AS CompiledPlan_MemoryObject, omo.memory_object_address, pages_allocated_count, type, page_size_in_bytes FROM sys.dm_exec_cached_plans AS ecp JOIN sys.dm_os_memory_objects AS omo ON ecp.memory_object_address = omo.memory_object_address OR ecp.memory_object_address = omo.parent_address WHERE cacheobjtype = 'Compiled Plan'; GO
RecordBycunay
Record Date20-10-2015 13:54:59
Düzenle
Kopyala
Sil