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.