You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Sophie Blee-Goldman (Jira)" <ji...@apache.org> on 2020/06/15 17:39:00 UTC
[jira] [Created] (KAFKA-10165) Percentiles metric leaking memory
Sophie Blee-Goldman created KAFKA-10165:
-------------------------------------------
Summary: Percentiles metric leaking memory
Key: KAFKA-10165
URL: https://issues.apache.org/jira/browse/KAFKA-10165
Project: Kafka
Issue Type: Bug
Components: metrics, streams
Reporter: Sophie Blee-Goldman
Assignee: Sophie Blee-Goldman
Fix For: 2.6.0
We've hit several OOM in our soak cluster lately. We were finally able to get a heap dump right after the OOM, and found over 3.5 GB of memory being retained by the percentiles (or specifically by the 1MB float[] used by the percentiles).
The leak does seem specific to the Percentiles class, as we see ~3000 instances of the Percentiles object vs only ~500 instances of the Max object, which is also used in the same sensor as the Percentiles
We did recently lower the size from 1MB to 100kB, but it's clear there is a leak of some kind and a "smaller leak" is not an acceptable solution. If the cause fo the leak is not immediately obvious we should just revert the percentiles in 2.6 and work on stabilizing them for 2.7
--
This message was sent by Atlassian Jira
(v8.3.4#803005)