> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# jemalloc_* session settings

> ClickHouse session settings in the jemalloc_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## jemalloc\_collect\_profile\_samples\_in\_trace\_log

Type

Bool

Default

0

Collect jemalloc allocation and deallocation samples in trace log.

## jemalloc\_enable\_profiler

Type

Bool

Default

0

Enable jemalloc profiler for the query. Jemalloc will sample allocations and all deallocations for sampled allocations.
Profiles can be flushed using SYSTEM JEMALLOC FLUSH PROFILE which can be used for allocation analysis.
Samples can also be stored in system.trace\_log using config jemalloc\_collect\_global\_profile\_samples\_in\_trace\_log or with query setting jemalloc\_collect\_profile\_samples\_in\_trace\_log.
See [Allocation Profiling](https://clickhouse.com/docs/concepts/features/performance/allocation-profiling.md)
