Skip to content

Commit bc5048b

Browse files
Merge pull request #1265 from rabbitmq/rabbitmq-server-1264
Add vm_memory_calculation_strategy to cuttlefish schema
2 parents 22cc2ae + 8e3d3ab commit bc5048b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

priv/schema/rabbit.schema

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,14 @@ end}.
683683
{mapping, "memory_monitor_interval", "rabbit.memory_monitor_interval",
684684
[{datatype, integer}]}.
685685

686+
%% When set to rss, RabbitMQ will display the memory usage as reported
687+
%% by the operating system (RSS value), not by the Erlang VM.
688+
%%
689+
%% {vm_memory_calculation_strategy, rss},
690+
691+
{mapping, "vm_memory_calculation_strategy", "rabbit.vm_memory_calculation_strategy",
692+
[{datatype, {enum, [rss, erlang]}}]}.
693+
686694
%% Set disk free limit (in bytes). Once free disk space reaches this
687695
%% lower bound, a disk alarm will be set - see the documentation
688696
%% listed above for more details.

test/config_schema_SUITE_data/rabbit.snippets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@ tcp_listen_options.exit_on_close = false",
131131
[{vm_memory_high_watermark_paging_ratio,0.75},
132132
{vm_memory_high_watermark,0.4}]}],
133133
[]},
134+
{memory_monitor_interval, "memory_monitor_interval = 5000",
135+
[{rabbit,
136+
[{memory_monitor_interval, 5000}]}],
137+
[]},
138+
{vm_memory_calculation_strategy, "vm_memory_calculation_strategy = rss",
139+
[{rabbit,
140+
[{vm_memory_calculation_strategy, rss}]}],
141+
[]},
142+
{vm_memory_calculation_strategy, "vm_memory_calculation_strategy = erlang",
143+
[{rabbit,
144+
[{vm_memory_calculation_strategy, erlang}]}],
145+
[]},
134146
{listeners_tcp_ip,
135147
"listeners.tcp.1 = 192.168.1.99:5672",
136148
[{rabbit,[{tcp_listeners,[{"192.168.1.99",5672}]}]}],

0 commit comments

Comments
 (0)