CCDAK · Question #152
You are experiencing low throughput from a Java producer. You monitor the Kafka metrics and notice that the metrics for that producer show low I/O thread ratio and low I/O thread wait ratio. What is…
The correct answer is D. The producer code has an expensive callback function. A low I/O thread ratio and low I/O thread wait ratio indicate that the producer's I/O threads are busy and not waiting on network or disk I/O. This suggests the bottleneck is in the producer's application code, such as an expensive callback function, which slows down processing.
Question
You are experiencing low throughput from a Java producer. You monitor the Kafka metrics and notice that the metrics for that producer show low I/O thread ratio and low I/O thread wait ratio. What is the most likely the cause of the slow producer performance?
Options
- ACompression is enabled.
- BThe producer is sending large batches of messages.
- CThere is a bad data link layer (layer 2) connection from the producer to the cluster.
- DThe producer code has an expensive callback function.
How the community answered
(28 responses)- A11% (3)
- B21% (6)
- C4% (1)
- D64% (18)
Explanation
A low I/O thread ratio and low I/O thread wait ratio indicate that the producer's I/O threads are busy and not waiting on network or disk I/O. This suggests the bottleneck is in the producer's application code, such as an expensive callback function, which slows down processing.
Topics
Community Discussion
No community discussion yet for this question.