[ 
https://issues.apache.org/jira/browse/KAFKA-19470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

terrytlu updated KAFKA-19470:
-----------------------------
    Description: 
We see that the broker has a performance bottleneck when processing requests in 
kafka 2.8.2 version. 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

  was:
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


> 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
>            Priority: Major
>         Attachments: image-2025-07-04-19-05-51-900.png
>
>
> We see that the broker has a performance bottleneck when processing requests 
> in kafka 2.8.2 version. 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)

Reply via email to