Metrics.NET icon indicating copy to clipboard operation
Metrics.NET copied to clipboard

Memory concerns for apps that runs 24/7, like "forever"

Open Spiralis opened this issue 10 years ago • 1 comments

We have a series of applications that run 24/7 for months and months at a time. Should I be concerned about ever increasing memory use by Metrics.NET - or is the internal data-structure set up to have a finite size?

This is a conceptual question, and I am not actually interested in one specific use-case, so the number of metrics, counters, meters and so on should not matter. However, there might be different concerns in regards to how metric-types use memory over time perhaps?

Finally, will using any reporters have an impact on the above? I guess not, but find that I have to ask :)

Spiralis avatar Oct 22 '15 11:10 Spiralis

It uses reservoir sampling to keep the data set finite.

Its implementation is here.

mnadel avatar Nov 18 '15 18:11 mnadel