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

add warning about inaccurate/confusing memory usage in hardware dashboard #10192

Closed
RichardJCai opened this issue Mar 26, 2021 · 1 comment
Closed

Comments

@RichardJCai
Copy link

RichardJCai commented Mar 26, 2021

Richard Cai (RichardJCai) commented:

https://www.cockroachlabs.com/docs/v20.2/ui-hardware-dashboard#memory-usage

The memory usage in the ui hardware dashboard can be inaccurate due to go's memory tracking.
Prior to go 1.16, memory will be reported as used until it is actually reclaimed by the operating system. This leads to some confusing UX when memory isn't actually used by CRDB but the dashboard will report it as used.

This will be fixed in go 1.16 however it may be worth nothing this until we upgrade to go 1.16. Currently, CockroachDB versions 21.1 and earlier are affected.

I ran into this UX issue when testing user connections, creating ~30000 user connections increased the memory to 2gb but killing the connections did not result in the memory usage decreasing in the dashboard.

Relevant go issue, which we can link to from the docs:
golang/go#42330

Jira Issue: DOC-1069

@exalate-issue-sync
Copy link

Andrew Feierabend (andf-crl) commented:
This memory reporting issue was fixed in go {{1.16}}, which indeed has been the version of {{go}} behind CRDB since v21.2. No updates to currently-documented docs versions necessary; closing as a docs no-op.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants