I metrics.GetOrRegisterMeter() many different meters to count events over the course of a second. Every second I emit the meter values to my downstream monitoring system before calling UnregisterAll().
The resources of the meters are never GC'd and the memory climbs drastically when many (50-hundreds) meters are created.
I
metrics.GetOrRegisterMeter()
many different meters to count events over the course of a second. Every second I emit the meter values to my downstream monitoring system before callingUnregisterAll()
.The resources of the meters are never GC'd and the memory climbs drastically when many (50-hundreds) meters are created.