-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Add JVM Buildpack Memory Calculator values to actuator-autoconfigure Metrics #42458
Comments
Thanks for the suggestion. I wonder if some of this would be better off in Micrometer. For example, Micrometer could provide the |
Good point, wasn't aware there are standard Please note that my initial assumption was not completely correct. It does work as described above for threads, but for classes the situation is more complicated, as I described in paketo-buildpacks/libjvm#425 (comment). In short: the value is not currently not available and it's currently also unclear where other metrics like the maximum number of loaded classes assumed by the memory calculator will come from. Providing a calculated value would clash with the naming-schme of environment variables. |
The observability team agree that this could be a standard |
Thanks Andy for the follow-up. |
An environment variable is one option currently considered (filesystem also, but with reservations). Number of threads already is available as |
When using buildpacks / bootBuildImage, the Java Buildpack Memory Calculator uses some heuristics to calculate memory parameters.
Those include an assumed number of loaded classes and maximum tread count. We'd like to have alerts, when those values were underestimated, but currently there are no metrics available to write these alerts.
We're currently doing something like the following, but I believe adding this to the actuator-autoconfigure project would be beneficial for other, too.
The text was updated successfully, but these errors were encountered: