Skip to content

com.codahale.metrics.WeightedSnapshot$WeightedSample objects not being garbage collected #3186

Description

@escion

Hi guys, I'm using micrometer jmx registry to send metrics (specifically a timer) to JMX beans.
Profiling my application, I see that com.codahale.metrics.WeightedSnapshot$WeightedSample objects slowly increase without being garbage collected; is it normal? same for java.util.concurrent.ConcurrentSkipListMap$Node.
jmx-registry uses timer with default ExponentiallyDecayReservoir which it should be the most efficient in terms of memory consumption/GC; my test was stressing my app with 70req/s (the exact rate of my production app).
Any idea?

Thanks a lot

Alessandro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions