You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/sp_BlitzFirst_Checks_by_Priority.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ Before adding a new check, make sure to add a Github issue for it first, and hav
6
6
7
7
If you want to change anything about a check - the priority, finding, URL, or ID - open a Github issue first. The relevant scripts have to be updated too.
INSERT INTO #BlitzFirstResults (CheckID, Priority, FindingsGroup, Finding, Details, URL)
1804
+
SELECT 45 AS CheckID,
1805
+
50 AS Priority,
1806
+
''Query Problems'' AS FindingsGroup,
1807
+
''Memory Leak in USERSTORE_TOKENPERM Cache'' AS Finding,
1808
+
N''UserStore_TokenPerm clerk is using '' + CAST(CAST(SUM(CASE WHEN type = ''USERSTORE_TOKENPERM'' AND name = ''TokenAndPermUserStore'' THEN pages_kb * 1.0 ELSE 0.0 END) / 1024.0 / 1024.0 AS INT) AS NVARCHAR(100))
1809
+
+ N''GB RAM, total buffer pool is '' + CAST(CAST(SUM(pages_kb) / 1024.0 / 1024.0 AS INT) AS NVARCHAR(100)) + N''GB.''
1810
+
AS details,
1811
+
''https://www.BrentOzar.com/go/userstore'' AS URL
1812
+
FROM sys.dm_os_memory_clerks
1813
+
HAVING SUM(CASE WHEN type = ''USERSTORE_TOKENPERM'' AND name = ''TokenAndPermUserStore'' THEN pages_kb * 1.0 ELSE 0.0 END) / SUM(pages_kb) >= 0.1
1814
+
AND SUM(pages_kb) / 1024.0 / 1024.0 >= 1; /* At least 1GB RAM overall */';
1815
+
EXEC sp_executesql @StringToExecute;
1816
+
END
1817
+
ELSE
1818
+
BEGIN
1819
+
/* Antiques Roadshow SQL 2008R2 - version */
1820
+
SET @StringToExecute = N'
1821
+
INSERT INTO #BlitzResults (CheckID, Priority, FindingsGroup, Finding, Details, URL)
1822
+
SELECT 45 AS CheckID,
1823
+
50 AS Priority,
1824
+
''Performance'' AS FindingsGroup,
1825
+
''Memory Leak in USERSTORE_TOKENPERM Cache'' AS Finding,
1826
+
N''UserStore_TokenPerm clerk is using '' + CAST(CAST(SUM(CASE WHEN type = ''USERSTORE_TOKENPERM'' AND name = ''TokenAndPermUserStore'' THEN single_pages_kb + multi_pages_kb * 1.0 ELSE 0.0 END) / 1024.0 / 1024.0 AS INT) AS NVARCHAR(100))
1827
+
+ N''GB RAM, total buffer pool is '' + CAST(CAST(SUM(single_pages_kb + multi_pages_kb) / 1024.0 / 1024.0 AS INT) AS NVARCHAR(100)) + N''GB.''
1828
+
AS details,
1829
+
''https://www.BrentOzar.com/go/userstore'' AS URL
1830
+
FROM sys.dm_os_memory_clerks
1831
+
HAVING SUM(CASE WHEN type = ''USERSTORE_TOKENPERM'' AND name = ''TokenAndPermUserStore'' THEN single_pages_kb + multi_pages_kb * 1.0 ELSE 0.0 END) / SUM(single_pages_kb + multi_pages_kb) >= 0.1
1832
+
AND SUM(single_pages_kb + multi_pages_kb) / 1024.0 / 1024.0 >= 1; /* At least 1GB RAM overall */';
0 commit comments