Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Adapt rabbitmq-diagnostics memory_breakdown to server master #229

Merged
merged 4 commits into from
Nov 28, 2017

Conversation

michaelklishin
Copy link
Contributor

Specifically to rabbitmq/rabbitmq-server#1404.

Closes #228.

[#153217000]

# See https://github.com/rabbitmq/rabbitmq-server/pull/1404.
totals = Keyword.get(num_pairs, :total)
pairs = Keyword.delete(num_pairs, :total)
total = Keyword.get(totals, strategy) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

The new memory reporting API reports strategy but does not take it to account when reporting the breakdown. For example if erlang strategy is configured, preallocated memory will still be reported.
To create a reasonable percentage breakdown we should not select total using strategy. Instead maximal value of three totals can be used, or use rss like HTTP API.

@hairyhum hairyhum merged commit 62072ee into master Nov 28, 2017
@dumbbell dumbbell deleted the rabbitmq-cli-228 branch November 28, 2017 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants