> ## 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_enable_* server settings

> ClickHouse server settings in the jemalloc_enable_* generated group.

These settings configure the ClickHouse server and are autogenerated from ClickHouse source.

## jemalloc\_enable\_background\_threads

Type Bool Default 1 Changeable without restart NoEnable jemalloc background threads. Jemalloc uses background threads to cleanup unused memory pages. Disabling it could lead to performance degradation.

## jemalloc\_enable\_global\_profiler

Type Bool Default 0 Changeable without restart NoEnable jemalloc's allocation profiler for all threads. 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)
