[ https://issues.apache.org/jira/browse/FLINK-36172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928908#comment-17928908 ]
Francesco commented on FLINK-36172: ----------------------------------- hey, I worked on a fix of this same issue in my company internal fork and initial tests seem to indicate that the perf regression introduced with FLINK-31650 is resolved. I'll try to find the time to push the code in here as well if you're interested. I'll provide more details about the issue, my investigation and proposed solution in the PR. > Web UI Freezes When There Are Many Finished Tasks in Batch Jobs > --------------------------------------------------------------- > > Key: FLINK-36172 > URL: https://issues.apache.org/jira/browse/FLINK-36172 > Project: Flink > Issue Type: Bug > Components: Runtime / Metrics, Runtime / REST > Reporter: Junrui Li > Priority: Major > > When there are a large number of finished tasks in batch jobs, the web UI > becomes unresponsive and often freezes, significantly impairing user > experience. A flame graph analysis reveals that most CPU time is consumed in > [{{MetricStore}}|https://github.com/apache/flink/blob/576ec2b9361a3f8d58fb22b998b0ca7c3c8cf10e/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/metrics/MetricStore.java#L479], > indicating a performance bottleneck. > This issue appears to be an unexpected regression and should be addressed > promptly. -- This message was sent by Atlassian Jira (v8.20.10#820010)