conduktor.io ↗

buffer.memory — Kafka Producer Configuration

The total bytes of memory the producer can use to buffer records waiting to be sent to the server. If records are sent faster than they can be delivered to the server the producer will block for max.block.ms after which it will fail with an exception.This setting should correspond roughly to the total memory the producer will use, but is not a hard bound since not all memory the producer uses is used for buffering

Description

The total bytes of memory the producer can use to buffer records waiting to be sent to the server. If records are sent faster than they can be delivered to the server the producer will block for max.block.ms after which it will fail with an exception.This setting should correspond roughly to the total memory the producer will use, but is not a hard bound since not all memory the producer uses is used for buffering. Some additional memory will be used for compression (if compression is enabled) as well as for maintaining in-flight requests.Type:longDefault:33554432Valid Values:[0,...]Importance:high

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.8.133554432
Producer0.8.233554432
Producer0.9.033554432
Producer0.10.033554432
Producer0.10.133554432
Producer0.10.233554432
Producer0.11.033554432
Producer1.033554432
Producer1.133554432
Producer2.033554432
Producer2.133554432
Producer2.233554432
Producer2.333554432
Producer2.433554432
Producer2.533554432
Producer2.633554432
Producer2.733554432
Producer2.833554432
Producer3.033554432
Producer3.133554432
Producer3.233554432
Producer3.333554432
Producer3.433554432
Producer3.533554432
Producer3.633554432
Producer3.733554432
Producer3.833554432
Producer3.933554432
Producer4.033554432
Producer4.133554432
Producer4.233554432
Producer4.333554432
Producer4.433554432

Tuning Recommendation

Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.

ProfileProposalRationale and tradeoff
producer / throughput134217728Budgets producer record buffering during bursts or temporary downstream slowdown.

Tradeoff: It is not a hard cap on total producer process memory, and increasing it cannot fix sustained downstream saturation.

Reference · 2026-10-27
producer / durability67108864Budgets producer record buffering during bursts or temporary downstream slowdown.

Tradeoff: It is not a hard cap on total producer process memory, and increasing it cannot fix sustained downstream saturation.

Reference · 2026-10-27

Related Configs

batch.size · linger.ms · max.block.ms · delivery.timeout.ms

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.