Skip to content

Commit c7c3f92

Browse files
Add vm_memory_calculation_strategy to ctl status
How total amount of memory is computed is an important piece of information: what the runtime reports and what tools such as 'ps' report will differ. http://erlang.org/pipermail/erlang-questions/2012-September/069337.html is a good source of information on some of the discrepancies.
1 parent 6f374fb commit c7c3f92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rabbit.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,8 @@ status() ->
640640
{erlang_version, erlang:system_info(system_version)},
641641
{memory, rabbit_vm:memory()},
642642
{alarms, alarms()},
643-
{listeners, listeners()}],
643+
{listeners, listeners()},
644+
{vm_memory_calculation_strategy, vm_memory_monitor:get_memory_calculation_strategy()}],
644645
S2 = rabbit_misc:filter_exit_map(
645646
fun ({Key, {M, F, A}}) -> {Key, erlang:apply(M, F, A)} end,
646647
[{vm_memory_high_watermark, {vm_memory_monitor,

0 commit comments

Comments
 (0)