Skip to content

Commit 1d23411

Browse files
committed
Merge branch 'stable' into rabbitmq-common-224-master
2 parents 50b978f + 7a37407 commit 1d23411

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@
258258
%%
259259
%% {vm_memory_high_watermark_paging_ratio, 0.5},
260260

261-
%% Selects Erlang VM memory consumption calculation strategy. Can be `rss` or `erlang`,
262-
%% `rss` is the default. Introduced in 3.6.11.
263-
%% See https://github.com/rabbitmq/rabbitmq-server/issues/1223 for background.
264-
%% {vm_memory_calculation_strategy, rss},
265-
261+
%% Selects Erlang VM memory consumption calculation strategy. Can be `allocated`, `rss` or `legacy` (aliased as `erlang`),
262+
%% Introduced in 3.6.11. `allocated` is the default as of 3.6.13.
263+
%% See https://github.com/rabbitmq/rabbitmq-server/issues/1223 and rabbitmq/rabbitmq-common#224 for background.
264+
%% {vm_memory_calculation_strategy, allocated},
265+
266266
%% Interval (in milliseconds) at which we perform the check of the memory
267267
%% levels against the watermarks.
268268
%%

src/rabbit_looking_glass.erl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,30 @@ boot() ->
2727
ok;
2828
Value ->
2929
Input = parse_value(Value),
30+
<<<<<<< HEAD
3031
rabbit_log:info("Enabling Looking Glass profiler, input value: ~p", [Input]),
3132
{ok, _} = application:ensure_all_started(looking_glass),
3233
lg:trace(Input, lg_file_tracer, "traces.lz4", #{
3334
mode => profile,
3435
running => true,
3536
send => true})
37+
=======
38+
rabbit_log:info(
39+
"Enabling Looking Glass profiler, input value: ~p",
40+
[Input]
41+
),
42+
{ok, _} = application:ensure_all_started(looking_glass),
43+
lg:trace(
44+
Input,
45+
lg_file_tracer,
46+
"traces.lz4",
47+
maps:from_list([
48+
{mode, profile},
49+
{running, true},
50+
{send, true}]
51+
)
52+
)
53+
>>>>>>> stable
3654
end.
3755

3856
parse_value(Value) ->

0 commit comments

Comments
 (0)