summaryrefslogtreecommitdiff
path: root/src/rabbit_vm.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-10 12:09:18 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-10 12:09:18 +0000
commit5cbe6878f8bc97b2f77a31e6938718242758e9b7 (patch)
tree529af216c49dda912a3cbad86e3978ae3b11277a /src/rabbit_vm.erl
parenta571a6748de982f518d0f00af62d39c63ec29379 (diff)
downloadrabbitmq-server-bug26058.tar.gz
Fix memory calculations: we were erroneously removing the mgmt db from the plugins bucket (although it was never counted there) and not removing it from the 'other plugins' bucket (although it was).bug26058
Diffstat (limited to 'src/rabbit_vm.erl')
-rw-r--r--src/rabbit_vm.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_vm.erl b/src/rabbit_vm.erl
index 597f9094..18d8eb45 100644
--- a/src/rabbit_vm.erl
+++ b/src/rabbit_vm.erl
@@ -43,13 +43,12 @@ memory() ->
{Sums, _Other} = sum_processes(lists:append(All), [memory]),
- [Conns, Qs, MsgIndexProc, MgmtDbProc, AllPlugins] =
+ [Conns, Qs, MsgIndexProc, MgmtDbProc, Plugins] =
[aggregate_memory(Names, Sums) || Names <- All],
Mnesia = mnesia_memory(),
MsgIndexETS = ets_memory(rabbit_msg_store_ets_index),
MgmtDbETS = ets_memory(rabbit_mgmt_db),
- Plugins = AllPlugins - MgmtDbProc,
[{total, Total},
{processes, Processes},
@@ -60,7 +59,7 @@ memory() ->
{system, System}] =
erlang:memory([total, processes, ets, atom, binary, code, system]),
- OtherProc = Processes - Conns - Qs - MsgIndexProc - AllPlugins,
+ OtherProc = Processes - Conns - Qs - MsgIndexProc - Plugins - MgmtDbProc,
[{total, Total},
{connection_procs, Conns},