You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "terrytlu (Jira)" <ji...@apache.org> on 2025/07/04 11:11:00 UTC
[jira] [Created] (KAFKA-19470) Avoid creating loggers repeatedly to affect the performance of request processing
terrytlu created KAFKA-19470:
--------------------------------
Summary: Avoid creating loggers repeatedly to affect the performance of request processing
Key: KAFKA-19470
URL: https://issues.apache.org/jira/browse/KAFKA-19470
Project: Kafka
Issue Type: Improvement
Components: core
Affects Versions: 2.8.2
Reporter: terrytlu
Attachments: image-2025-07-04-19-05-51-900.png
We see that the broker has a performance bottleneck when processing requests. The CPU profiler is as follows:
!image-2025-07-04-19-05-51-900.png|width=1734,height=796!
seen in KAFKA-15141, the corresponding classes IncrementalFetchContext/DelayedProduce/SessionlessFetchContext have been processed, but I think a better approach should be to optimize the trait Logging, we can introduce a static Map object to cache the duplicate loggers
--
This message was sent by Atlassian Jira
(v8.20.10#820010)