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
When encountering memory issues or a memory leak, knowing what queries and resources are consuming a significant amount of memory is helpful. Below you can find queries that can help you to debug memory issues by finding which queries, databases, and tables can be optimized:
12
12
13
-
## List currently running processes by peak memory usage
13
+
## List currently running processes by peak memory usage {#list-currently-running-processes-by-peak-memory}
14
14
15
15
```sql
16
16
SELECT
@@ -24,7 +24,7 @@ ORDER BY peak_memory_usage DESC
24
24
LIMIT100;
25
25
```
26
26
27
-
## List metrics for memory usage
27
+
## List metrics for memory usage {#list-metrics-for-memory-usage}
28
28
29
29
```sql
30
30
SELECT
@@ -38,7 +38,7 @@ order by
38
38
value desc;
39
39
```
40
40
41
-
## List tables by current memory usage
41
+
## List tables by current memory usage {#list-tables-by-current-memory-usage}
42
42
43
43
```sql
44
44
SELECT
@@ -49,25 +49,25 @@ FROM system.tables
49
49
WHERE engine IN ('Memory','Set','Join');
50
50
```
51
51
52
-
## Output total memory used by merges
52
+
## Output total memory used by merges {#output-total-memory-used-by-merges}
0 commit comments