'Too many org.apache.kafka.common.metrics.stats.* instance been loaded caused OOM issue
we have project using kafka and kafka stream, recently we found OOM issue happen for the project, after analysis the dump file, we found that too many 'org.apache.kafka.common.metrics.stats.Rate','org.apache.kafka.common.metrics.stats.Avg' and 'org.apache.kafka.common.metrics.stats.Max' instance been loaded which occupy most of memory, then caused OOM issue. i am quite new to kafka and kafka stream, i can not understand why need to load so many instance for these metrics thing. is there any config we are missing? or it should be the expected behavior?
please advice. thank you.
example from dump analysis result: 2,133 instances of org.apache.kafka.common.metrics.stats.Rate, loaded by sun.misc.Launcher$AppClassLoader occupy 390,256,496 (37.08%) bytes.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
