[ https://issues.apache.org/jira/browse/KAFKA-14433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17642123#comment-17642123 ]
David Arthur commented on KAFKA-14433: -------------------------------------- I did some investigation on this. Running {{./gradlew -PmaxParallelForks=1 :core:integrationTest}} to better capture the leaked objects, I took a heap dump after 30 minutes. Several KafkaRaftManager instances were hanging around. !image-2022-12-01-13-53-57-886.png! This anonymous function "Partition$$anonfun$4" is one of the metric's gauge closures. !image-2022-12-01-13-55-35-488.png! > Clear all yammer metrics when test harnesses clean up > ----------------------------------------------------- > > Key: KAFKA-14433 > URL: https://issues.apache.org/jira/browse/KAFKA-14433 > Project: Kafka > Issue Type: Improvement > Reporter: Colin McCabe > Priority: Major > Attachments: image-2022-12-01-13-53-57-886.png, > image-2022-12-01-13-55-35-488.png > > > We should clear all yammer metrics from the yammer singleton when the > integration test harnesses clean up. This would avoid memory leaks in tests > that have a lot of test cases. -- This message was sent by Atlassian Jira (v8.20.10#820010)