[
https://issues.apache.org/jira/browse/KAFKA-14423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Divij Vaidya updated KAFKA-14423:
---------------------------------
Attachment: flamegraph1.html
> 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
> Priority: Major
> Attachments: Screenshot 2022-11-28 at 12.11.23.png, Screenshot
> 2022-11-28 at 15.26.30.png, flamegraph1.html
>
>
> 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)