v.21.11Improvements
Add Memory Peak Usage Tracing to system.trace_log
Add ability to trace peak memory usage (with new trace_type insystem.trace_log-MemoryPeak). #29858 (Azat Khuzhin).
Why it matters
This feature enables users to monitor and analyze the maximum memory consumption during query execution, helping to identify queries or operations that consume excessive memory and optimize resource usage.How to use it
Users can enable tracing of peak memory usage by querying thesystem.trace_log table and filtering for the trace type 'MemoryPeak'. This allows inspection of peak memory metrics associated with queries.