Divij Vaidya created KAFKA-14423: ------------------------------------ Summary: Optimize CPU bottleneck caused by metrics capture Key: KAFKA-14423 URL: https://issues.apache.org/jira/browse/KAFKA-14423 Project: Kafka Issue Type: Improvement Components: network Reporter: Divij Vaidya Attachments: Screenshot 2022-11-28 at 12.11.23.png
I ran a produce-only workload on a plaintext single broker. One of the main findings was that kafka.network.Processor.updateRequestMetrics(kafka.network.RequestChannel$Response method is expensive to the extent that 90% of the time taken by Processor.processCompletedSends() is taken by this method. The flamegraph is attached. The objective of this ticket is to optimize the performance of metrics collection here. -- This message was sent by Atlassian Jira (v8.20.10#820010)