conduktor.io ↗

max.request.size — Kafka Producer Configuration

The maximum size of a request in bytes. This setting will limit the number of record batches the producer will send in a single request to avoid sending huge requests

Description

The maximum size of a request in bytes. This setting will limit the number of record batches the producer will send in a single request to avoid sending huge requests. This is also effectively a cap on the maximum uncompressed record batch size. Note that the server has its own cap on the record batch size (after compression if compression is enabled) which may be different from this.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.8.11048576
Producer0.8.21048576
Producer0.9.01048576
Producer0.10.01048576
Producer0.10.11048576
Producer0.10.21048576
Producer0.11.01048576
Producer1.01048576
Producer1.11048576
Producer2.01048576
Producer2.11048576
Producer2.21048576
Producer2.31048576
Producer2.41048576
Producer2.51048576
Producer2.61048576
Producer2.71048576
Producer2.81048576
Producer3.01048576
Producer3.11048576
Producer3.21048576
Producer3.31048576
Producer3.41048576
Producer3.51048576
Producer3.61048576
Producer3.71048576
Producer3.81048576
Producer3.91048576
Producer4.01048576
Producer4.11048576
Producer4.21048576
Producer4.31048576
Producer4.41048576

Tuning Recommendation

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

ProfileProposalRationale and tradeoff
producer / throughput5242880Limits a Java producer request and effectively the maximum uncompressed record batch. Increase only when record sizes require it.

Tradeoff: Broker/topic limits apply to record batches after compression; they are not identical to the whole request limit. Check socket.request.max.bytes separately.

Reference · 2026-10-27

Related Configs

batch.size · compression.type

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