TokenAndPermUserStore
DBCC FREESYSTEMCACHE (
'TokenAndPermUserStore'
)
GO
SELECT
[type],
[name],
cache_address,
buckets_count,
buckets_in_use_count
FROM sys.dm_os_memory_cache_hash_tables
WHERE [type] = 'TokenAndPermUserStore';
-- SQL 2012
SELECT
[name],
sum(pages_kb)/1024 MB
FROM sys.dm_os_memory_clerks
WHERE type = 'USERSTORE_TOKENPERM' and pages_kb > 8
GROUP BY name;
-- SQL 2008
SELECT SUM(single_pages_kb + multi_pages_kb) AS "CurrentSizeOfTokenCache(kb)"
FROM sys.dm_os_memory_clerks
WHERE name = 'TokenAndPermUserStore'
-- 어떤 내용들이 있는지
SELECT COUNT(*) as TokenCount, *
FROM
(SELECT
x.value('(//@name)[1]', 'varchar (100)') AS [Token Name],
x.value('(//@class)[1]', 'bigint') AS [Class],
x.value('(//@subclass)[1]', 'int') AS [SubClass]
FROM
(SELECT CAST (entry_data as xml)
FROM sys.dm_os_memory_cache_entries
WHERE type = 'USERSTORE_TOKENPERM')
AS R(x)
) a
GROUP BY [Token Name],[Class],[SubClass]
'Common Admin' 카테고리의 다른 글
Admin::Mini dump 추출 방법 (0) | 2016.09.02 |
---|---|
성능 Counter - Disk Transfers/sec (Disk Reads/sec, Disk Writes/sec) (1) | 2015.12.28 |
Database Landscape map – February 2013 (0) | 2013.03.13 |
SQL Server tempdb 복구 (0) | 2013.01.08 |