connections.max.idle.ms — Kafka Broker Configuration
Close idle connections after the number of milliseconds specified by this config..
Description
Close idle connections after the number of milliseconds specified by this config.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.8.2 | 600000 |
| 0.9.0 | 600000 |
| 0.10.0 | 600000 |
| 0.10.1 | 600000 |
| 0.10.2 | 600000 |
| 0.11.0 | 600000 |
| 1.0 | 600000 |
| 1.1 | 600000 |
| 2.0 | 600000 |
| 2.1 | 600000 |
| 2.2 | 600000 |
| 2.3 | 600000 |
| 2.4 | 600000 |
| 2.5 | 600000 |
| 2.6 | 600000 (10 minutes) |
| 2.7 | 600000 (10 minutes) |
| 2.8 | 600000 (10 minutes) |
| 3.0 | 600000 (10 minutes) |
| 3.1 | 600000 (10 minutes) |
| 3.2 | 600000 (10 minutes) |
| 3.3 | 600000 (10 minutes) |
| 3.4 | 600000 (10 minutes) |
| 3.5 | 600000 (10 minutes) |
| 3.6 | 600000 (10 minutes) |
| 3.7 | 600000 (10 minutes) |
| 3.8 | 600000 (10 minutes) |
| 3.9 | 600000 (10 minutes) |
| 4.0 | 600000 (10 minutes) |
| 4.1 | 600000 (10 minutes) |
| 4.2 | 600000 (10 minutes) |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| producer / throughput | 540000 | Keeping connections alive for 9 minutes avoids the TCP handshake and TLS setup cost (10-50ms) of re-establishing connections on every burst, which dominates throughput cost at high partition counts. |
| consumer / throughput | 540000 | Keeping connections alive for 9 minutes avoids repeated TCP + TLS handshake overhead (10-50ms each) when reconnecting to brokers. For high-throughput consumers that poll continuously, connections are always active and this setting rarely triggers — but it prevents teardown during brief fetch lulls. |
Related Configs
send.buffer.bytes · receive.buffer.bytes · request.timeout.ms
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.