conduktor.io ↗

receive.buffer.bytes — Kafka Consumer Configuration

The size of the TCP receive buffer (SO_RCVBUF) to use when reading data. If the value is -1, the OS default will be used.

Description

The size of the TCP receive buffer (SO_RCVBUF) to use when reading data. If the value is -1, the OS default will be used.

Default Values by Kafka Version

Kafka VersionDefault Value
0.9.032768
0.10.065536
0.10.165536
0.10.265536
0.11.065536
1.065536
1.165536
2.065536
2.165536
2.265536
2.365536
2.465536
2.565536
2.665536 (64 kibibytes)
2.765536 (64 kibibytes)
2.865536 (64 kibibytes)
3.065536 (64 kibibytes)
3.165536 (64 kibibytes)
3.265536 (64 kibibytes)
3.365536 (64 kibibytes)
3.465536 (64 kibibytes)
3.565536 (64 kibibytes)
3.665536 (64 kibibytes)
3.765536 (64 kibibytes)
3.865536 (64 kibibytes)
3.965536 (64 kibibytes)
4.065536 (64 kibibytes)
4.165536 (64 kibibytes)
4.265536 (64 kibibytes)

Tuning Recommendation

ProfileRecommendedWhy
producer / throughput262144A larger receive buffer (256KB) ensures ProduceResponse and metadata responses from brokers are read in fewer syscalls, reducing latency of the acknowledgment path and freeing the sender thread faster.
consumer / throughput1048576Raising the TCP receive buffer from 64KB to 1MB allows the OS to buffer large FetchResponses (fetching up to 100MB) without forcing the consumer to drain the socket mid-response. Reduces the number of recv() syscalls by up to 16x for large fetches, directly improving throughput.

Related Configs

send.buffer.bytes · connections.max.idle.ms · fetch.max.bytes · max.partition.fetch.bytes

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