Skip to main content
These settings configure the ClickHouse server and are autogenerated from ClickHouse source.

total_memory_profiler_sample_max_allocation_size

Collect random allocations of size less or equal than specified value with probability equal to total_memory_profiler_sample_probability. 0 means disabled. You may want to set ‘max_untracked_memory’ to 0 to make this threshold to work as expected.

total_memory_profiler_sample_min_allocation_size

Collect random allocations of size greater or equal than specified value with probability equal to total_memory_profiler_sample_probability. 0 means disabled. You may want to set ‘max_untracked_memory’ to 0 to make this threshold to work as expected.

total_memory_profiler_step

Whenever server memory usage becomes larger than every next step in number of bytes the memory profiler will collect the allocating stack trace. Zero means disabled memory profiler. Values lower than a few megabytes will slow down server.

total_memory_tracker_sample_probability

Allows to collect random allocations and de-allocations and writes them in the system.trace_log system table with trace_type equal to a MemorySample with the specified probability. The probability is for every allocation or deallocations, regardless of the size of the allocation. Note that sampling happens only when the amount of untracked memory exceeds the untracked memory limit (default value is 4 MiB). It can be lowered if total_memory_profiler_step is lowered. You can set total_memory_profiler_step equal to 1 for extra fine-grained sampling. Possible values:
  • Positive double.
  • 0 — Writing of random allocations and de-allocations in the system.trace_log system table is disabled.
Last modified on July 23, 2026