Giter Site home page Giter Site logo

Comments (2)

jonatan-ivanov avatar jonatan-ivanov commented on June 14, 2024

I guess you meant to ask per Meter? If so, which Meter? The documentation contains memory footprint estimation, you can take a look at it, for example for Timer: Timer memory footprint estimation. But instead of guessing, you can measure this. Create X amount of Meters and check your heap size before/after taking GC into consideration:

  1. Start your app, warm it up with some "traffic"
  2. Force full GC and make sure GC was triggered (e.g.: using GC logs)
  3. Record heap size (this will be your baseline)
  4. Create X amount of Meters
  5. Force full GC and make sure GC was triggered (e.g.: using GC logs)
  6. Record heap size

The diff between the two heap size recordings is roughly the memory consumption of X amount of Meters.

You can also check these:

  • An article I wrote about high cardinality and what you can do with it: https://develotters.com/posts/high-cardinality/
  • HighCardinalityTagsDetector to detect which tag(s) has(have) high cardinality.
  • I made some measurements here: #3047
    Please notice that these measurements happened on my machine (architecture and OS), using my JVM (vendor and version) using my approximation methods and it might not be applicable to you.
  • I also have a project called Resourceater that is a web application that is capable of creating resources (including Micrometer Meters) on demand.

from micrometer.

jaehleeee avatar jaehleeee commented on June 14, 2024

@jonatan-ivanov
I already read other issues about OOM by high cardinality (including https://develotters.com/posts/high-cardinality/)
I want to solve high cardinality of my application so I ask about how much memory use.

I mean Counter Meter and I want to know there are documents that already estimated about it.
(Before I start to measure this.)

Or maximum size of any meter?

from micrometer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.