Skip to content
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

Track JVM memory usage after GC #2900

Closed
jack-berg opened this issue Oct 24, 2022 · 1 comment · Fixed by #2901
Closed

Track JVM memory usage after GC #2900

jack-berg opened this issue Oct 24, 2022 · 1 comment · Fixed by #2901
Assignees
Labels
[label deprecated] triaged-accepted [label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR spec:metrics Related to the specification/metrics directory

Comments

@jack-berg
Copy link
Member

In talking about JVM gc metrics, the java SIG has concluded that it would be valuable to track memory usage after garbage collection. Discussion available here.

The JVM provides access to determine the memory usage by different memory pools as of the most recent garbage collection event. By recording this, we can analyze it over time to see if there is:

  1. Evidence of memory leak. The post-gc usage would grow over time, since garbage collection would be unable to reclaim certain chunks of memory.
  2. Evidence that the memory pool size is inadequate. If the post-gc heap is high as a percentage of the total memory limit, you may way to allocate more memory to avoid overly frequent garbage collections.
@jack-berg jack-berg added the spec:metrics Related to the specification/metrics directory label Oct 24, 2022
@carlosalberto
Copy link
Contributor

Overall it seems good and doesn't seem polemical, specially as we already have Java GC metrics (and these metrics are process-specific).

cc @jsuereth just FYI ;)

@carlosalberto carlosalberto added the [label deprecated] triaged-accepted [label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR label Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[label deprecated] triaged-accepted [label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR spec:metrics Related to the specification/metrics directory
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants