Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meter Memory Leak #201

Closed
ariens-shopify opened this issue Feb 21, 2017 · 2 comments
Closed

Meter Memory Leak #201

ariens-shopify opened this issue Feb 21, 2017 · 2 comments

Comments

@ariens-shopify
Copy link

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.

@i19
Copy link

i19 commented Mar 9, 2017

https://github.com/rcrowley/go-metrics/blob/master/meter.go#L37

@imkira
Copy link

imkira commented Apr 13, 2017

This is actually a dup of #163
And, it is also supposed to be solved by #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants