diff --git a/deps/rabbit/src/rabbit_channel.erl b/deps/rabbit/src/rabbit_channel.erl index f6d3657147f..71fa9be6f30 100644 --- a/deps/rabbit/src/rabbit_channel.erl +++ b/deps/rabbit/src/rabbit_channel.erl @@ -2787,16 +2787,3 @@ maybe_decrease_global_publishers(#ch{publishing_mode = true}) -> is_global_qos_permitted() -> rabbit_deprecated_features:is_permitted(global_qos). - -adjust_vheap() -> - case code_version:get_otp_version() of - OtpMaj when OtpMaj >= 27 -> - %% 46422 is the default min_bin_vheap_size and for OTP 27 and above - %% we want to substantially increase it for processes that may buffer - %% messages. 32x has proven workable in testing whilst not being - %% rediculously large - process_flag(min_bin_vheap_size, 46422 * 32); - _ -> - ok - end. - diff --git a/deps/rabbit/src/rabbit_process_flag.erl b/deps/rabbit/src/rabbit_process_flag.erl index 32c8f156257..fc74c25f554 100644 --- a/deps/rabbit/src/rabbit_process_flag.erl +++ b/deps/rabbit/src/rabbit_process_flag.erl @@ -11,7 +11,6 @@ -export([adjust_for_message_handling_proc/0 ]). -%% @doc Enqueues a message. %% Adjust process flags for processes that handle RabbitMQ messages. %% For example any process that uses the `rabbit_queue_type' module %% may benefit from this tuning. @@ -24,7 +23,7 @@ adjust_for_message_handling_proc() -> %% 46422 is the default min_bin_vheap_size and for OTP 27 and above %% we want to substantially increase it for processes that may buffer %% messages. 32x has proven workable in testing whilst not being - %% rediculously large + %% ridiculously large process_flag(min_bin_vheap_size, 46422 * 32), ok; _ ->