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
[!INCLUDE [SQL Server Azure SQL Database](../../includes/applies-to-version/sql-asdb.md)]
25
26
26
-
Reports system level memory consumers for [!INCLUDE[hek_2](../../includes/hek-2-md.md)]. The memory for these consumers comes either from the default pool (when the allocation is in the context of a user thread) or from internal pool (if the allocation is in the context of a system thread).
27
-
27
+
Reports system level memory consumers for [!INCLUDE[hek_2](../../includes/hek-2-md.md)]. The memory for these consumers comes either from the default pool (when the allocation is in the context of a user thread) or from the internal pool (if the allocation is in the context of a system thread).
28
+
28
29
```sql
29
-
-- system memory consumers @ instance
30
30
SELECT*
31
-
FROMsys.dm_xtp_system_memory_consumers
32
-
```
33
-
34
-
For more information, see [In-Memory OLTP (In-Memory Optimization)](../in-memory-oltp/overview-and-usage-scenarios.md).
35
-
36
-
|Column name|Type|Description|
37
-
|-----------------|----------|-----------------|
38
-
|memory_consumer_id|**bigint**|Internal ID for memory consumer.|
39
-
|memory_consumer_type|**int**|An integer that represents the type of the memory consumer with one of the following values:<br /><br /> 0 - It should not be displayed. Aggregates memory usage of two or more consumers.<br /><br /> 1 - LOOKASIDE: Tracks memory consumption for a system lookaside.<br /><br /> 2 - VARHEAP: Tracks memory consumption for a variable-length heap.<br /><br /> 4 - IO page pool: Tracks memory consumption for a system page pool used for IO operations.|
40
-
|memory_consumer_type_desc|**nvarchar(16)**|The description of the type of memory consumer:<br /><br /> 0 - It should not be displayed.<br /><br /> 1 - LOOKASIDE<br /><br /> 2 - VARHEAP<br /><br /> 4 - PGPOOL|
41
-
|memory_consumer_desc|**nvarchar(64)**|Description of the memory consumer instance:<br /><br /> VARHEAP: <br />System heap. General purpose. Currently only used to allocate garbage collection work items.<br />-OR-<br />Lookaside heap. Used by looksides when the number of items contained in the lookaside list reaches a predetermined cap (usually around 5,000 items).<br /><br /> PGPOOL: For IO system pools there are three different sizes: System 4K page pool, System 64 K page pool, and System 256 K page pool.|
42
-
|lookaside_id|**bigint**|The ID of the thread-local, lookaside memory provider.|
43
-
|pagepool_id|**bigint**|The ID of the thread-local, page pool memory provider.|
44
-
|allocated_bytes|**bigint**|Number of bytes reserved for this consumer.|
45
-
|used_bytes|**bigint**|Bytes used by this consumer. Applies only to varheap memory consumers.|
46
-
|allocation_count|**int**|Number of allocations.|
47
-
|partition_count|**int**|Internal use only.|
48
-
|sizeclass_count|**int**|Internal use only.|
49
-
|min_sizeclass|**int**|Internal use only.|
50
-
|max_sizeclass|**int**|Internal use only.|
51
-
|memory_consumer_address|**varbinary**|Internal address of the consumer.|
52
-
53
-
## Permissions
54
-
Requires VIEW SERVER STATE permissions on the server.
55
-
56
-
## User Scenario
57
-
31
+
FROMsys.dm_xtp_system_memory_consumers;
32
+
```
33
+
34
+
For more information, see [In-Memory OLTP (In-Memory Optimization)](../in-memory-oltp/overview-and-usage-scenarios.md).
35
+
36
+
|Column name|Type|Description|
37
+
|-----------------|----------|-----------------|
38
+
|memory_consumer_id|**bigint**|Internal ID for memory consumer.|
39
+
|memory_consumer_type|**int**|An integer that represents the type of the memory consumer with one of the following values:<br /><br />0 - Should not be displayed. Aggregates memory usage of two or more consumers.<br /><br />1 - LOOKASIDE: Tracks memory consumption for a system lookaside.<br /><br />2 - VARHEAP: Tracks memory consumption for a variable-length heap.<br /><br />4 - IO page pool: Tracks memory consumption for a system page pool used for IO operations.|
40
+
|memory_consumer_type_desc|**nvarchar(16)**|The description of the type of memory consumer:<br /><br />0 - Should not be displayed<br /><br />1 - LOOKASIDE<br /><br />2 - VARHEAP<br /><br />4 - PGPOOL|
41
+
|memory_consumer_desc|**nvarchar(64)**|Description of the memory consumer instance:<br /><br />VARHEAP:<br />System heap. General purpose. Currently only used to allocate garbage collection work items.<br />-OR-<br />Lookaside heap. Used by lookasides when the number of items contained in the lookaside list reaches a predetermined cap (usually around 5,000 items).<br /><br />PGPOOL: For IO system pools there are three different sizes: System 4K page pool, System 64 K page pool, and System 256 K page pool.|
42
+
|lookaside_id|**bigint**|The ID of the thread-local, lookaside memory provider.|
43
+
|pagepool_id|**bigint**|The ID of the thread-local, page pool memory provider.|
44
+
|allocated_bytes|**bigint**|Number of bytes reserved for this consumer.|
45
+
|used_bytes|**bigint**|Bytes used by this consumer. Applies only to varheap memory consumers.|
46
+
|allocation_count|**int**|Number of allocations.|
47
+
|partition_count|**int**|Internal use only.|
48
+
|sizeclass_count|**int**|Internal use only.|
49
+
|min_sizeclass|**int**|Internal use only.|
50
+
|max_sizeclass|**int**|Internal use only.|
51
+
|memory_consumer_address|**varbinary**|Internal address of the consumer.|
52
+
53
+
## Permissions
54
+
55
+
Requires VIEW SERVER STATE permissions on the server.
56
+
57
+
## User scenario
58
+
59
+
This example outputs the system memory consumers for the SQL Server instance:
0 commit comments