Skip to content

Commit 7a37407

Browse files
Merge pull request #1389 from rabbitmq/rabbitmq-common-224
Update default node memory calculation strategy to match rabbitmq/rabbitmq-common#224
2 parents 2a57ce4 + b7840cf commit 7a37407

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ define PROJECT_ENV
1616
{ssl_options, []},
1717
{vm_memory_high_watermark, 0.4},
1818
{vm_memory_high_watermark_paging_ratio, 0.5},
19-
{vm_memory_calculation_strategy, rss},
19+
{vm_memory_calculation_strategy, allocated},
2020
{memory_monitor_interval, 2500},
2121
{disk_free_limit, 50000000}, %% 50MB
2222
{msg_store_index_module, rabbit_msg_store_ets_index},

docs/rabbitmq.config.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@
262262
%%
263263
%% {vm_memory_high_watermark_paging_ratio, 0.5},
264264

265-
%% Selects Erlang VM memory consumption calculation strategy. Can be `rss` or `erlang`,
266-
%% `rss` is the default. Introduced in 3.6.11.
267-
%% See https://github.com/rabbitmq/rabbitmq-server/issues/1223 for background.
268-
%% {vm_memory_calculation_strategy, rss},
265+
%% Selects Erlang VM memory consumption calculation strategy. Can be `allocated`, `rss` or `legacy` (aliased as `erlang`),
266+
%% Introduced in 3.6.11. `allocated` is the default as of 3.6.13.
267+
%% See https://github.com/rabbitmq/rabbitmq-server/issues/1223 and rabbitmq/rabbitmq-common#224 for background.
268+
%% {vm_memory_calculation_strategy, allocated},
269269

270270
%% Interval (in milliseconds) at which we perform the check of the memory
271271
%% levels against the watermarks.

0 commit comments

Comments
 (0)