<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Our RabbitMQ server has now been running for 2-3 days and this morning we noticed it has gone above the high memory watermark of 1.6 GB. I ran ‘rabbitmqctl status’ to understand the memory usage, as there were no messages queued. Here is the result:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[{pid,4504},<o:p></o:p></p><p class=MsoNormal> {running_applications,<o:p></o:p></p><p class=MsoNormal> [{rabbitmq_management,"RabbitMQ Management Console","3.0.2"},<o:p></o:p></p><p class=MsoNormal> {rabbitmq_management_agent,"RabbitMQ Management Agent","3.0.2"},<o:p></o:p></p><p class=MsoNormal> {rabbit,"RabbitMQ","3.0.2"},<o:p></o:p></p><p class=MsoNormal> {ssl,"Erlang/OTP SSL application","5.1.2"},<o:p></o:p></p><p class=MsoNormal> {public_key,"Public key infrastructure","0.17"},<o:p></o:p></p><p class=MsoNormal> {crypto,"CRYPTO version 2","2.2"},<o:p></o:p></p><p class=MsoNormal> {os_mon,"CPO CXC 138 46","2.2.10"},<o:p></o:p></p><p class=MsoNormal> {rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","3.0.2"},<o:p></o:p></p><p class=MsoNormal> {webmachine,"webmachine","1.9.1-rmq3.0.2-git52e62bc"},<o:p></o:p></p><p class=MsoNormal> {mochiweb,"MochiMedia Web Server","2.3.1-rmq3.0.2-gitd541e9a"},<o:p></o:p></p><p class=MsoNormal> {xmerl,"XML parser","1.3.2"},<o:p></o:p></p><p class=MsoNormal> {inets,"INETS CXC 138 49","5.9.2"},<o:p></o:p></p><p class=MsoNormal> {mnesia,"MNESIA CXC 138 12","4.7.1"},<o:p></o:p></p><p class=MsoNormal> {amqp_client,"RabbitMQ AMQP Client","0.0.0"},<o:p></o:p></p><p class=MsoNormal> {sasl,"SASL CXC 138 11","2.2.1"},<o:p></o:p></p><p class=MsoNormal> {stdlib,"ERTS CXC 138 10","1.18.3"},<o:p></o:p></p><p class=MsoNormal> {kernel,"ERTS CXC 138 10","2.15.3"}]},<o:p></o:p></p><p class=MsoNormal> {os,{unix,linux}},<o:p></o:p></p><p class=MsoNormal> {erlang_version,<o:p></o:p></p><p class=MsoNormal> "Erlang R15B03 (erts-5.9.3.1) [source] [smp:8:8] [async-threads:30] [hipe] [kernel-poll:true]\n"},<o:p></o:p></p><p class=MsoNormal> {memory,<o:p></o:p></p><p class=MsoNormal> [{total,1806492128},<o:p></o:p></p><p class=MsoNormal> {connection_procs,463497352},<o:p></o:p></p><p class=MsoNormal> {queue_procs,47298896},<o:p></o:p></p><p class=MsoNormal> {plugins,810880},<o:p></o:p></p><p class=MsoNormal> {other_proc,0},<o:p></o:p></p><p class=MsoNormal> {mnesia,4795268},<o:p></o:p></p><p class=MsoNormal> {mgmt_db,56057116},<o:p></o:p></p><p class=MsoNormal> {msg_index,3831448},<o:p></o:p></p><p class=MsoNormal> {other_ets,12874188},<o:p></o:p></p><p class=MsoNormal> {binary,1165034312},<o:p></o:p></p><p class=MsoNormal> {code,10672981},<o:p></o:p></p><p class=MsoNormal> {atom,1606805},<o:p></o:p></p><p class=MsoNormal> {other_system,47749138}]},<o:p></o:p></p><p class=MsoNormal> {vm_memory_high_watermark,0.4},<o:p></o:p></p><p class=MsoNormal> {vm_memory_limit,1717986918},<o:p></o:p></p><p class=MsoNormal> {disk_free_limit,1000000000},<o:p></o:p></p><p class=MsoNormal> {disk_free,23417651200},<o:p></o:p></p><p class=MsoNormal> {file_descriptors,<o:p></o:p></p><p class=MsoNormal> [{total_limit,15900},<o:p></o:p></p><p class=MsoNormal> {total_used,14923},<o:p></o:p></p><p class=MsoNormal> {sockets_limit,14308},<o:p></o:p></p><p class=MsoNormal> {sockets_used,14308}]},<o:p></o:p></p><p class=MsoNormal> {processes,[{limit,1048576},{used,134052}]},<o:p></o:p></p><p class=MsoNormal> {run_queue,0},<o:p></o:p></p><p class=MsoNormal> {uptime,679042}]<o:p></o:p></p><p class=MsoNormal>...done.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So, these two turn out to be the culprits:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>{connection_procs,463497352},<o:p></o:p></p><p class=MsoNormal>{binary,1165034312}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now, connections_procs is somewhat understandable, because there are a high number of connections. But, I cannot understand why the binary memory usage is so high. Can you please explain? How to keep this in check?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal>Kapil<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>