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: docs/relational-databases/system-dynamic-management-views/sys-dm-xtp-system-memory-consumers-transact-sql.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,10 @@ ms.author: wiassaf
25
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
28
-
```
28
+
```sql
29
29
-- system memory consumers @ instance
30
-
select * from sys.dm_xtp_system_memory_consumers
30
+
SELECT*
31
+
FROMsys.dm_xtp_system_memory_consumers
31
32
```
32
33
33
34
For more information, see [In-Memory OLTP (In-Memory Optimization)](../in-memory-oltp/overview-and-usage-scenarios.md).
@@ -54,19 +55,18 @@ select * from sys.dm_xtp_system_memory_consumers
54
55
55
56
## User Scenario
56
57
57
-
```
58
+
```sql
58
59
-- system memory consumers @ instance
59
-
selectmemory_consumer_type_desc,
60
-
allocated_bytes/1024 as allocated_bytes_kb,
61
-
used_bytes/1024 as used_bytes_kb, allocation_count
0 commit comments