etishor / Metrics.NET

The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Spiralis opened this issue · 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 :)

It uses reservoir sampling to keep the data set finite.

Its implementation is here.