We are seeing some of our services (Java <> SpringBoot) getting OOM. On checking heap dump, we found the micrometer library is taking 113MB (around 54% of total heap memory).
io.micrometer.statsd.internal.LogbackMetricsSuppressingUnicastProcessor
Jar: io.micrometer:micrometer-core
I did some research online and found creating a lot of distinct tags can lead to this issue. However, this is not the case with our services. We are pushing a lot of metrics to data dog but reusing tags all the time.