Low I/O thread activity with blocked throughput often indicates that producer callbacks are consuming too much time, causing the sender thread to block while waiting for onCompletion() to finish.
From Kafka Producer Performance Guide:
“Expensive logic in callbacks (e.g., I/O or complex computation) can block the sender thread, reducing throughput.”
Compression (A) may slightly impact CPU but not I/O thread usage.
Large batches (B) improve throughput if managed correctly.
A Layer 2 network issue (C) would lead to packet loss, not specifically low callback metrics.
[Reference: Kafka Producer Metrics and Performance Tuning, ============, ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit