Skip to content

Commit 2da358c

Browse files
Merge pull request #1252 from FabianPonce/fix-gc-docs
Improve documentation around new default for background garbage collection
2 parents 00b48b8 + 8d52a09 commit 2da358c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/rabbitmq.conf.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
## Disabling background GC may reduce latency for client operations,
387387
## keeping it enabled may reduce median RAM usage.
388388
##
389-
# background_gc_enabled = true
389+
# background_gc_enabled = false
390390

391391
## Target (desired) interval (in milliseconds) at which we run background GC.
392392
## The actual interval will vary depending on how long it takes to execute

docs/rabbitmq.config.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
%% See http://www.rabbitmq.com/partitions.html for further details.
277277
%%
278278
%% {cluster_partition_handling, ignore},
279-
279+
280280
%% Mirror sync batch size, in messages. Increasing this will speed
281281
%% up syncing but total batch size in bytes must not exceed 2 GiB.
282282
%% Available in RabbitMQ 3.6.0 or later.
@@ -343,7 +343,7 @@
343343
%% Disabling background GC may reduce latency for client operations,
344344
%% keeping it enabled may reduce median RAM usage.
345345
%%
346-
%% {background_gc_enabled, true},
346+
%% {background_gc_enabled, false},
347347
%%
348348
%% Target (desired) interval (in milliseconds) at which we run background GC.
349349
%% The actual interval will vary depending on how long it takes to execute

src/background_gc.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ interval_gc(State = #state{last_interval = LastInterval}) ->
7474
State#state{last_interval = Interval}.
7575

7676
gc() ->
77-
Enabled = rabbit_misc:get_env(rabbit, background_gc_enabled, true),
77+
Enabled = rabbit_misc:get_env(rabbit, background_gc_enabled, false),
7878
case Enabled of
7979
true ->
8080
[garbage_collect(P) || P <- processes(),

0 commit comments

Comments
 (0)