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

Fix memory monitor #1268

Merged
merged 2 commits into from
Mar 1, 2021
Merged

Fix memory monitor #1268

merged 2 commits into from
Mar 1, 2021

Conversation

raymondjacobson
Copy link
Member

Description

What is the purpose of this PR? What is the current behavior? New behavior? Relevant links (e.g. Trello) and/or information pertaining to PR?

Use mem.active instead of mem.used which excludes buf/cache

Tests

List the manual tests and repro instructions to verify that this PR works as anticipated. Include log analysis if possible.
❗ If this change impacts clients, make sure that you have tested the clients ❗

  1. Ran CN locally and hit monitor endpoint
    ...

❗ Reminder 💡❗:
If this PR touches a critical flow (such as Indexing, Uploads, Gateway or the Filesystem), make sure to add the requires-special-attention label. Add relevant labels as necessary.

dmanjunath
dmanjunath previously approved these changes Mar 1, 2021
Copy link
Contributor

@dmanjunath dmanjunath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth to also profile process.memoryUsage()?

@raymondjacobson
Copy link
Member Author

Would it be worth to also profile process.memoryUsage()?

Yeah, I think that would be a good idea. I can add a sep monitor here for it.

@raymondjacobson raymondjacobson merged commit c9c7c25 into master Mar 1, 2021
@raymondjacobson raymondjacobson deleted the rj-memory-fix branch March 1, 2021 17:18
raymondjacobson added a commit that referenced this pull request Mar 1, 2021
* Fix memory monitor

* Add node process mem usage
raymondjacobson added a commit that referenced this pull request Mar 1, 2021
* Fix memory monitor

* Add node process mem usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants