v.20.4New Feature

Add Server-Wide Memory Profiler for High Usage Thresholds

Add simple server-wide memory profiler that will collect allocation contexts when server memory usage becomes higher than the next allocation threshold. #10444 (alexey-milovidov)
Introduces a simple server-wide memory profiler that captures allocation contexts when the server memory usage surpasses a specified allocation threshold.

Why it matters

This feature helps diagnose and monitor memory usage spikes by collecting detailed allocation information precisely when memory consumption exceeds critical limits, enabling better memory management and troubleshooting.

How to use it

Enable the memory profiler on the ClickHouse server by setting the allocation threshold. When the server's memory usage exceeds this configured threshold, the profiler automatically collects allocation contexts without requiring manual intervention.