Comments (2)
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:
- Start your app, warm it up with some "traffic"
- Force full GC and make sure GC was triggered (e.g.: using GC logs)
- Record heap size (this will be your baseline)
- Create X amount of Meters
- Force full GC and make sure GC was triggered (e.g.: using GC logs)
- 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.
@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)
- Allow customizing PrometheusProperties via PrometheusConfig
- Update netty to fix a vulnerability HOT 1
- Allow observation to have a mutable access to parent HOT 4
- Using Spring SPEL in the `@Observed` annotation to allow dynamic low and high cardinality values HOT 1
- MeterFilters configured after a Meter has been registered
- Support parsing PrometheusConfig#prometheusProperties from "get"
- Support native histogram with the Prometheus 1.x client
- Bump com.gradle.enterprise from 3.16.2 to 3.17
- Bump com.gradle.enterprise from 3.16.2 to 3.17
- Bump com.gradle.enterprise from 3.16.2 to 3.17
- Static descriptions for Kafka consumer metrics HOT 6
- Micrometer Prometheus scrape format example does not compile HOT 2
- Improve memory usage of StepBucketHistogram
- Apache HTTP Client connection metrics
- Document support for Prometheus Client 1.x
- Add `Tags.of` method taking array of `Pair` HOT 6
- Document how to customize tags in micrometer-java11 HttpClient instrumentation HOT 8
- Remove unnecessary mockito dependency in micrometer-test
- Switch to `gradle/actions/wrapper-validation@v3` GitHub Action
- NullPointerException in DefaultJmsProcessObservationConvention HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micrometer.