KIP-1231 — Deprecate '--max-partition-memory-bytes' option in ConsoleProducer
Accepted Kafka 4.2 Producer
Deprecates the --max-partition-memory-bytes CLI argument in kafka-console-producer.sh with a warning message, directing users to --batch-size which maps to the same underlying batch.size producer config. Having two options that configure the same property with different names created confusion, and --max-partition-memory-bytes is a misleading name that implies a per-partition memory limit rather than a batch size.
Details
| Author | Ming-Yen Chung |
| Status | Accepted |
| Kafka Version | 4.2 |
| JIRA | KAFKA-12392 |
| Wiki | View on Apache Wiki |
| Created | 2025-10-17 |
| Last Modified | 2025-11-05 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.