max.poll.records — Kafka Consumer Configuration
The maximum number of records returned in a single call to poll(). Note, that max.poll.records does not impact the underlying fetching behavior
Description
The maximum number of records returned in a single call to poll(). Note, that max.poll.records does not impact the underlying fetching behavior. The consumer will cache the records from each fetch request and returns them incrementally from each poll.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 0.10.0 | 2147483647 |
| Consumer | 0.10.1 | 500 |
| Consumer | 0.10.2 | 500 |
| Consumer | 0.11.0 | 500 |
| Consumer | 1.0 | 500 |
| Consumer | 1.1 | 500 |
| Consumer | 2.0 | 500 |
| Consumer | 2.1 | 500 |
| Consumer | 2.2 | 500 |
| Consumer | 2.3 | 500 |
| Consumer | 2.4 | 500 |
| Consumer | 2.5 | 500 |
| Consumer | 2.6 | 500 |
| Consumer | 2.7 | 500 |
| Consumer | 2.8 | 500 |
| Consumer | 3.0 | 500 |
| Consumer | 3.1 | 500 |
| Consumer | 3.2 | 500 |
| Consumer | 3.3 | 500 |
| Consumer | 3.4 | 500 |
| Consumer | 3.5 | 500 |
| Consumer | 3.6 | 500 |
| Consumer | 3.7 | 500 |
| Consumer | 3.8 | 500 |
| Consumer | 3.9 | 500 |
| Consumer | 4.0 | 500 |
| Consumer | 4.1 | 500 |
| Consumer | 4.2 | 500 |
| Consumer | 4.3 | 500 |
| Consumer | 4.4 | 500 |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| consumer / throughput | 2000 | Limits how many cached records a Java poll() returns. It does not change the underlying fetch size. Tradeoff: A larger poll batch can extend processing time. librdkafka has no direct configuration equivalent. Reference · 2026-10-27 |
| consumer / latency | 100 | Limits how many cached records a Java poll() returns. It does not change the underlying fetch size. Tradeoff: A larger poll batch can extend processing time. librdkafka has no direct configuration equivalent. Reference · 2026-10-27 |
| consumer / durability | 100 | Limits how many cached records a Java poll() returns. It does not change the underlying fetch size. Tradeoff: A larger poll batch can extend processing time. librdkafka has no direct configuration equivalent. Reference · 2026-10-27 |
Related Configs
fetch.max.bytes · max.partition.fetch.bytes · max.poll.interval.ms · enable.auto.commit · check.crcs