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

Negative used memory in metrics #15485

Closed
tezc opened this issue Aug 26, 2019 · 0 comments · Fixed by #15590
Closed

Negative used memory in metrics #15485

tezc opened this issue Aug 26, 2019 · 0 comments · Fixed by #15590

Comments

@tezc
Copy link
Contributor

@tezc tezc commented Aug 26, 2019

(LongProbeFunction<Runtime>) runtime1 -> runtime1.totalMemory() - runtime1.freeMemory()

If JVM heap expands after runtime1.totalMemory() call and before runtime1.freeMemory() call , used memory gets negative value when new freeMemory is larger than previous totalMemory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.