vm_memory_high_watermark.relative = 0.5
vm_memory_high_watermark_paging_ratio = 0.5
disk_free_limit.relative = 2.0
/var/lib/rabbitmq/mnesia/rabbit@<<hostname>>/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent
total 692M
-rw-r----- 1 rabbitmq rabbitmq 692M Jul 26 16:53 1911.rdq
-rw-r----- 1 rabbitmq rabbitmq 0 Jul 26 16:53 1912.rdq
OS centos7, 4GB of memory, 4 CPU's.
rabbitmq 3.6.6, erlang 20.3
{disk_free_limit, "50MB"},
{vm_memory_high_watermark, 0.7}, -> Memory high watermark = 2.6GB
{vm_memory_high_watermark_paging_ratio, 0.5}]},
=INFO REPORT==== 9-Aug-2018::14:18:14 ===
accepting AMQP connection <0.12132.2015> (XXXXXXX:52771 -> YYYYYYYY:5672)
=INFO REPORT==== 9-Aug-2018::14:18:14 ===
accepting AMQP connection <0.12849.2015> (XXXXXXX:52772 -> YYYYYYYY:5672)
=INFO REPORT==== 9-Aug-2018::14:18:15 ===
accepting AMQP connection <0.13235.2015> (XXXXXXX:52773 -> YYYYYYYY:5672)
=INFO REPORT==== 9-Aug-2018::14:18:28 ===
accepting AMQP connection <0.15639.2015> (XXXXXXX:52784 -> YYYYYYYY:5672)
=INFO REPORT==== 9-Aug-2018::14:25:12 ===
accepting AMQP connection <0.5010.2017> (ZZZZZZZZZ:63771 -> YYYYYYYY:5672)
=INFO REPORT==== 9-Aug-2018::14:25:12 ===
closing AMQP connection <0.5010.2017> (ZZZZZZZZZ:63771 -> YYYYYYYY:5672)
=INFO REPORT==== 9-Aug-2018::14:32:48 ===
accepting AMQP connection <0.5019.2019> (CCCCCCCCCCC:53562 -> YYYYYYYY:5672)
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--MKStaff Software Engineer, Pivotal/RabbitMQ
[root@XXXXXXXX ~]# rabbitmqctl status
Status of node rabbit@XXXXXXXX ...
[{pid,921},
{running_applications,
[{rabbitmq_top,"RabbitMQ Top","3.7.7"},
{rabbitmq_shovel_management,
"Management extension for the Shovel plugin","3.7.7"},
{rabbitmq_management,"RabbitMQ Management Console","3.7.7"},
{rabbitmq_shovel,"Data Shovel for RabbitMQ","3.7.7"},
{rabbitmq_delayed_message_exchange,"RabbitMQ Delayed Message Exchange",
"20171201-3.7.x"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.7"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.7"},
{rabbitmq_amqp1_0,"AMQP 1.0 support for RabbitMQ","3.7.7"},
{rabbitmq_auth_backend_ldap,"RabbitMQ LDAP Authentication Backend",
"3.7.7"},
{rabbit,"RabbitMQ","3.7.7"},
{amqp_client,"RabbitMQ AMQP Client","3.7.7"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.7.7"},
{jsx,"a streaming, evented json parsing toolkit","2.8.2"},
{cowboy,"Small, fast, modern HTTP server.","2.2.2"},
{amqp10_client,"AMQP 1.0 client from the RabbitMQ Project","3.7.7"},
{ranch_proxy_protocol,"Ranch Proxy Protocol Transport","1.5.0"},
{ranch,"Socket acceptor pool for TCP protocols.","1.5.0"},
{ssl,"Erlang/OTP SSL application","9.0"},
{public_key,"Public key infrastructure","1.6.1"},
{asn1,"The Erlang ASN1 compiler version 5.0.6","5.0.6"},
{xmerl,"XML parser","1.3.17"},
{amqp10_common,
"Modules shared by rabbitmq-amqp1.0 and rabbitmq-amqp1.0-client",
"3.7.7"},
{recon,"Diagnostic tools for production use","2.3.2"},
{cowlib,"Support library for manipulating Web protocols.","2.1.0"},
{eldap,"Ldap api","1.2.4"},
{os_mon,"CPO CXC 138 46","2.4.5"},
{mnesia,"MNESIA CXC 138 12","4.15.4"},
{inets,"INETS CXC 138 49","7.0"},
{crypto,"CRYPTO","4.3"},
{lager,"Erlang logging framework","3.6.3"},
{goldrush,"Erlang event stream processor","0.1.9"},
{compiler,"ERTS CXC 138 10","7.2.2"},
{syntax_tools,"Syntax tools","2.1.5"},
{syslog,"An RFC 3164 and RFC 5424 compliant logging framework.","3.4.2"},
{sasl,"SASL CXC 138 11","3.2"},
{stdlib,"ERTS CXC 138 10","3.5.1"},
{kernel,"ERTS CXC 138 10","6.0"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 21 [erts-10.0.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64] [hipe]\n"},
{memory,
[{connection_readers,2106912},
{connection_writers,462596},
{connection_channels,1766956},
{connection_other,10773664},
{queue_procs,10485040},
{queue_slave_procs,0},
{plugins,25316964},
{other_proc,20864808},
{metrics,1191932},
{mgmt_db,17925216},
{mnesia,1162664},
{other_ets,3441280},
{binary,44119136},
{msg_index,116872},
{code,24318244},
{atom,1180881},
{other_system,12742059},
{allocated_unused,49184840},
{reserved_unallocated,343666688},
{strategy,rss},
{total,[{erlang,177975224},{rss,570826752},{allocated,227160064}]}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{http,15672,"::"}]},
{vm_memory_calculation_strategy,rss},
{vm_memory_high_watermark,0.5},
{vm_memory_limit,3044067328},
{disk_free_limit,12176269312},
{disk_free,34663190528},
{file_descriptors,
[{total_limit,924},
{total_used,79},
{sockets_limit,829},
{sockets_used,58}]},
{processes,[{limit,1048576},{used,2005}]},
{run_queue,1},
{uptime,1195779},
{kernel,{net_ticktime,60}}]
rabbitmq_auth_backend_ldap 3.7.7
rabbitmq_delayed_message_exchange 20171201-3.7.x
rabbitmq_management 3.7.7
rabbitmq_shovel 3.7.7
rabbitmq_shovel_management 3.7.7
rabbitmq_top 3.7.7
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--MKStaff Software Engineer, Pivotal/RabbitMQ
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
According to the breakdown your node at the time of `rabbitmqctl status` invocation used570826752 bytes (0,57 GB) and 343666688 bytes of which (0,34 GB) are preallocated by the runtime but notyet used. That's a high % ratio but not an excessive number.Memory allocator flags can be configured [1] (and there are more discussions in the searchable list archive) but I don't see any real reason to worry with the data provided.> About GC, isn't this enabled by default..?From my earlier response:> It is disabled by default in 3.7 as it makes no significant difference on most workloads and introduces a lot> of additional latency.I don't see any reason to enable it since the Binaries section uses 0,044 GB in the provided breakdown.rabbitmq-top is NOT meant to be the primary tool here, the breakdown provides is.In general, there is nothing in this report that would warrant posts in bold and with underlined text.Either you collected this data from the wrong node or it is clearly not under any kind of stress at the moment.If you want to understand the behavior of the system, deploy a separate node/cluster and run experiments with it,e.g. shut down your consumers and see where the enqueued messages are stored and what `rabbitmqctl status` reportswhen/if the node hits a memory alarm.On an unrelated note, your node runs with the limit of ~ 1K file descriptors, which is way under the recommended minimum [2].
On Fri, Aug 10, 2018 at 7:38 AM, Raul Kaubi <raul...@gmail.com> wrote:
HiI have enabled rabbitmq_top, a few weeks ago, but, in my opinion, this does not give me any hints, since when I order by memory descending, then it shows that top1 process uses 9.1 MB, but on the other hand management UI reports that 500+MB is used. Queues total bytes were also quite low at that time (under 1MB)
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/CGRBhIxbn-s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/CGRBhIxbn-s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/CGRBhIxbn-s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"memory":
"allocated_unused": 127544624
"atom": 1180881
"binary": 77607128
"code": 24318244
"connection_channels": 2217796
"connection_other": 21600824
"connection_readers": 2469528
"connection_writers": 736216
"metrics": 1470428
"mgmt_db": 17428024
"mnesia": 1153232
"msg_index": 174528
"other_ets": 3486264
"other_proc": 20049508
"other_system": 12919067
"plugins": 25417968
"queue_procs": 20882636
"queue_slave_procs": 0
"reserved_unallocated": 1724469248 ~ 1.6GB
"strategy": "rss"
"total":
"allocated": 360656896
"erlang": 233112272
"rss": 2085126144 ~ 1.9GB
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 512'
{background_gc_enabled,false},
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 64'
rabbitmq 9057 1 3 10:53 ? 00:01:48 /usr/lib64/erlang/erts-9.3.3.3/bin/beam.smp -W w -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 1280000 -K true -MHas ageffcbf -MBas ageffcbf -MHlmbcs 512 -MBlmbcs 64 -- -root
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,524288},
{as,ageffcbf}]},
{lmbcs,524288},
{as,ageffcbf}]},
{lmbcs,524288},
{as,ageffcbf}]},
{lmbcs,524288},
{as,ageffcbf}]},
{lmbcs,524288},
{as,ageffcbf}]},
>>>> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
>>>> To post to this group, send email to rabbitmq-users@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>>> --
>>> MK
>>>
>>> Staff Software Engineer, Pivotal/RabbitMQ
>>> --
>>> You received this message because you are subscribed to a topic in the Google Groups
>> "rabbitmq-users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/CGRBhIxbn-s/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
>>> To post to this group, send email to rabbitmq-users@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "rabbitmq-users"
>> group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
>> To post to this group, send an email to rabbitmq-users@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> MK
>
> Staff Software Engineer, Pivotal/RabbitMQ
>
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/CGRBhIxbn-s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
> To post to this group, send an email to rabbitmq-users@googlegroups.com.
>>> To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
>>> To post to this group, send email to rabbitm...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "rabbitmq-users"
>> group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
>> To post to this group, send an email to rabbitm...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> MK
>
> Staff Software Engineer, Pivotal/RabbitMQ
>
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/CGRBhIxbn-s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
> To post to this group, send an email to rabbitm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[root@XXXXXXXXXXX ~]# vi /etc/rabbitmq/rabbitmq-env.conf
[root@XXXXXXXXXXX ~]# cat /etc/rabbitmq/rabbitmq-env.conf
SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 128'
[root@XXXXXXXXXXX ~]#
[root@XXXXXXXXXXX ~]# systemctl restart rabbitmq-server
[root@XXXXXXXXXXX ~]# ps -ef | grep beam
rabbitmq 12408 1 73 20:48 ? 00:00:10 /usr/lib64/erlang/erts-9.3.3.3/bin/beam.smp -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 1280000 -K true -MHas ageffcbf -MBas ageffcbf -MHlmbcs 512 -MBlmbcs 128 -- -root /usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin -noshell -noinput -s rabbit boot -sname rabbit@XXXXXXXXXXX -boot start_sasl -conf /etc/rabbitmq/rabbitmq -conf_dir /var/lib/rabbitmq/config -conf_script_dir /usr/lib/rabbitmq/bin -conf_schema_dir /var/lib/rabbitmq/schema -conf_advanced /etc/rabbitmq/advanced -config /etc/rabbitmq/advanced -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit lager_log_root "/var/log/rabbitmq" -rabbit lager_default_file "/var/log/rabbitmq/rab...@XXXXXXXXXXX.log" -rabbit lager_upgrade_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX_upgrade.log" -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
root 12825 1394 0 20:48 pts/0 00:00:00 grep --color=auto beam
[root@XXXXXXXXXXX ~]# rabbitmqctl eval 'erlang:system_info({allocator, binary_alloc}).' | egrep '{as,ageffcbf}|{lmbcs'
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
[root@XXXXXXXXXXX ~]# vi /etc/rabbitmq/rabbitmq-env.conf
[root@XXXXXXXXXXX ~]# cat /etc/rabbitmq/rabbitmq-env.conf
SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 300'
[root@XXXXXXXXXXX ~]#
[root@XXXXXXXXXXX ~]# systemctl restart rabbitmq-server
[root@XXXXXXXXXXX ~]# ps -ef | grep beam
rabbitmq 13155 1 5 20:49 ? 00:00:19 /usr/lib64/erlang/erts-9.3.3.3/bin/beam.smp -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 1280000 -K true -MHas ageffcbf -MBas ageffcbf -MHlmbcs 512 -MBlmbcs 300 -- -root /usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin -noshell -noinput -s rabbit boot -sname rabbit@XXXXXXXXXXX -boot start_sasl -conf /etc/rabbitmq/rabbitmq -conf_dir /var/lib/rabbitmq/config -conf_script_dir /usr/lib/rabbitmq/bin -conf_schema_dir /var/lib/rabbitmq/schema -conf_advanced /etc/rabbitmq/advanced -config /etc/rabbitmq/advanced -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit lager_log_root "/var/log/rabbitmq" -rabbit lager_default_file "/var/log/rabbitmq/rab...@XXXXXXXXXXX.log" -rabbit lager_upgrade_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX_upgrade.log" -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
[root@XXXXXXXXXXX ~]# rabbitmqctl eval 'erlang:system_info({allocator, binary_alloc}).' | egrep '{as,ageffcbf}|{lmbcs'
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
--
HiI removed default allocator flags from : /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/sbin/rabbitmq-serverAnd looks like binary_alloc just won't go below 256KB, here is a test, when I changed it to 300, then it will report this value.
[root@XXXXXXXXXXX ~]# vi /etc/rabbitmq/rabbitmq-env.conf
[root@XXXXXXXXXXX ~]# cat /etc/rabbitmq/rabbitmq-env.conf
SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 128'
[root@XXXXXXXXXXX ~]#
[root@XXXXXXXXXXX ~]# systemctl restart rabbitmq-server
[root@XXXXXXXXXXX ~]# ps -ef | grep beam
rabbitmq 12408 1 73 20:48 ? 00:00:10 /usr/lib64/erlang/erts-9.3.3.3/bin/beam.smp -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 1280000 -K true -MHas ageffcbf -MBas ageffcbf -MHlmbcs 512 -MBlmbcs 128 -- -root /usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin -noshell -noinput -s rabbit boot -sname rabbit@XXXXXXXXXXX -boot start_sasl -conf /etc/rabbitmq/rabbitmq -conf_dir /var/lib/rabbitmq/config -conf_script_dir /usr/lib/rabbitmq/bin -conf_schema_dir /var/lib/rabbitmq/schema -conf_advanced /etc/rabbitmq/advanced -config /etc/rabbitmq/advanced -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit lager_log_root "/var/log/rabbitmq" -rabbit lager_default_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX.log" -rabbit lager_upgrade_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX_upgrade.log" -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
root 12825 1394 0 20:48 pts/0 00:00:00 grep --color=auto beam
[root@XXXXXXXXXXX ~]# rabbitmqctl eval 'erlang:system_info({allocator, binary_alloc}).' | egrep '{as,ageffcbf}|{lmbcs'
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
[root@XXXXXXXXXXX ~]# vi /etc/rabbitmq/rabbitmq-env.conf
[root@XXXXXXXXXXX ~]# cat /etc/rabbitmq/rabbitmq-env.conf
SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 300'
[root@XXXXXXXXXXX ~]#
[root@XXXXXXXXXXX ~]# systemctl restart rabbitmq-server
[root@XXXXXXXXXXX ~]# ps -ef | grep beam
rabbitmq 13155 1 5 20:49 ? 00:00:19 /usr/lib64/erlang/erts-9.3.3.3/bin/beam.smp -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 1280000 -K true -MHas ageffcbf -MBas ageffcbf -MHlmbcs 512 -MBlmbcs 300 -- -root /usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin -noshell -noinput -s rabbit boot -sname rabbit@XXXXXXXXXXX -boot start_sasl -conf /etc/rabbitmq/rabbitmq -conf_dir /var/lib/rabbitmq/config -conf_script_dir /usr/lib/rabbitmq/bin -conf_schema_dir /var/lib/rabbitmq/schema -conf_advanced /etc/rabbitmq/advanced -config /etc/rabbitmq/advanced -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit lager_log_root "/var/log/rabbitmq" -rabbit lager_default_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX.log" -rabbit lager_upgrade_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX_upgrade.log" -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
[root@XXXXXXXXXXX ~]# rabbitmqctl eval 'erlang:system_info({allocator, binary_alloc}).' | egrep '{as,ageffcbf}|{lmbcs'
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
Hi Raul,I should have been a bit more clear. I wanted you to remove the flags from rabbitmq-server (like you did) and from rabbitmq-env.conf, so that the end result is that no allocator flags are used.Before downgrading production, it would be great to know if removing all allocator flags solves your issue.Thanks,Luke
On Wednesday, August 22, 2018 at 11:03:05 AM UTC-7, Raul Kaubi wrote:
HiI removed default allocator flags from : /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/sbin/rabbitmq-serverAnd looks like binary_alloc just won't go below 256KB, here is a test, when I changed it to 300, then it will report this value.
[root@XXXXXXXXXXX ~]# vi /etc/rabbitmq/rabbitmq-env.conf
[root@XXXXXXXXXXX ~]# cat /etc/rabbitmq/rabbitmq-env.conf
SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 128'
[root@XXXXXXXXXXX ~]#
[root@XXXXXXXXXXX ~]# systemctl restart rabbitmq-server
[root@XXXXXXXXXXX ~]# ps -ef | grep beam
rabbitmq 12408 1 73 20:48 ? 00:00:10 /usr/lib64/erlang/erts-9.3.3.3/bin/beam.smp -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 1280000 -K true -MHas ageffcbf -MBas ageffcbf -MHlmbcs 512 -MBlmbcs 128 -- -root /usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin -noshell -noinput -s rabbit boot -sname rabbit@XXXXXXXXXXX -boot start_sasl -conf /etc/rabbitmq/rabbitmq -conf_dir /var/lib/rabbitmq/config -conf_script_dir /usr/lib/rabbitmq/bin -conf_schema_dir /var/lib/rabbitmq/schema -conf_advanced /etc/rabbitmq/advanced -config /etc/rabbitmq/advanced -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit lager_log_root "/var/log/rabbitmq" -rabbit lager_default_file "/var/log/rabbitmq/rab...@XXXXXXXXXXX.log" -rabbit lager_upgrade_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX_upgrade.log" -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
root 12825 1394 0 20:48 pts/0 00:00:00 grep --color=auto beam
[root@XXXXXXXXXXX ~]# rabbitmqctl eval 'erlang:system_info({allocator, binary_alloc}).' | egrep '{as,ageffcbf}|{lmbcs'
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
{lmbcs,262144},
{as,ageffcbf}]},
[root@XXXXXXXXXXX ~]# vi /etc/rabbitmq/rabbitmq-env.conf
[root@XXXXXXXXXXX ~]# cat /etc/rabbitmq/rabbitmq-env.conf
SERVER_ADDITIONAL_ERL_ARGS='+MHas ageffcbf +MBas ageffcbf +MHlmbcs 512 +MBlmbcs 300'
[root@XXXXXXXXXXX ~]#
[root@XXXXXXXXXXX ~]# systemctl restart rabbitmq-server
[root@XXXXXXXXXXX ~]# ps -ef | grep beam
rabbitmq 13155 1 5 20:49 ? 00:00:19 /usr/lib64/erlang/erts-9.3.3.3/bin/beam.smp -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 1280000 -K true -MHas ageffcbf -MBas ageffcbf -MHlmbcs 512 -MBlmbcs 300 -- -root /usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/ebin -noshell -noinput -s rabbit boot -sname rabbit@XXXXXXXXXXX -boot start_sasl -conf /etc/rabbitmq/rabbitmq -conf_dir /var/lib/rabbitmq/config -conf_script_dir /usr/lib/rabbitmq/bin -conf_schema_dir /var/lib/rabbitmq/schema -conf_advanced /etc/rabbitmq/advanced -config /etc/rabbitmq/advanced -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit lager_log_root "/var/log/rabbitmq" -rabbit lager_default_file "/var/log/rabbitmq/rab...@XXXXXXXXXXX.log" -rabbit lager_upgrade_file "/var/log/rabbitmq/rabbit@XXXXXXXXXXX_upgrade.log" -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@XXXXXXXXXXX" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
[root@XXXXXXXXXXX ~]# rabbitmqctl eval 'erlang:system_info({allocator, binary_alloc}).' | egrep '{as,ageffcbf}|{lmbcs'
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
{lmbcs,307200},
{as,ageffcbf}]},
I did these memory allocator tests in my own testbed rabbit cluster.But regarding production problems, I will try and downgrade erlang tonight from 21.0.3 to 20.3.8.6, and see if this will make any difference. I would rather not downgrade rabbitmq back to 3.6.6.RegardsRaul Kaubi
--
Hi
Inter-node communication port (a.k.a. distribution port) unintentionally used an excessively large
buffer size (1.2 GB instead of 128 MB). Kudos to Chris Friesen for noticing and reporting this.