<div dir="ltr">Hi Matthias,<div><br></div><div>There is no other vhosts. I can&#39;t keep the problem for investigation since it is a production server. &quot;rabbitmqctl stop_app; rabbitmqctl start_app&quot; frees the memory.</div>
<div><br></div><div>I am new to rabbit and this is just one of a series problems I meet. I am not sure whether it helps but I am going to list the problems I experienced to provide more context.<br><div class="gmail_extra">
<br></div><div class="gmail_extra">Environment:</div><div class="gmail_extra" style>- Debian 7.1</div><div class="gmail_extra">- A cluster with 3 servers</div><div class="gmail_extra">- A virtual ip is assigned to the servers, using keepalive to shift the virtual ip(automatic)<br>
- use default exchange</div><div class="gmail_extra" style>- 6 queues (<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">ha.snssdk.log,&nbsp;</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">ha.snssdk.log.dispatch,&nbsp;</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">ha.snssdk.log.output,&nbsp;</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">ssesion, session.log, session.output</span>), queues whose name begin with &#39;ha.&#39; are mirrored queues</div>
<div class="gmail_extra" style>- all queues and messages are none-durable</div><div class="gmail_extra" style>- message publish rate: 4000 ~ 10000 msg/s</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>
Problems(with actions I took):</div><div class="gmail_extra" style>1. Initially use rabbit version 3.1.1, the rabbit server crash with message like following sometime:&nbsp;<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Slogan: std_alloc: Cannot allocate 1119579832804544 bytes of memory (of type&nbsp;</span><span style="font-size:12.727272033691406px;font-family:arial,sans-serif">&quot;arg_reg&quot;).</span>&nbsp;</div>
<div class="gmail_extra" style>&nbsp; &nbsp; - action: upgrade both rabbit and erlang to the latest version.</div><div class="gmail_extra" style>2. rabbit take up to much memory</div><div class="gmail_extra" style>&nbsp; &nbsp; - action: rabbitmqctl stop_app; rabbitmqctl start_app</div>
<div class="gmail_extra" style>3. block on declaring queue &#39;<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">ha.snssdk.log.dispatch</span>&#39;, but it is OK to declare other queues, including &#39;<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">ha.snssdk.log.dispatch2</span>&#39;</div>
<div class="gmail_extra" style>&nbsp; &nbsp; - action: stop rabbit, remove mnesia folder, start rabbit and rebuild the cluster.</div><div class="gmail_extra" style>4. the management_plugin doesn&#39;t work, with message like &quot;<span style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px">TypeError: Cannot read property &#39;connections&#39; of undefined</span>&quot;</div>
<div class="gmail_extra" style>&nbsp; &nbsp;- action: asking in maillist but no action is taken so far</div><div class="gmail_extra" style>5. though all the queues and messages are none-durable, and the memory consumption is far below configured by &#39;vm_memory_high_watermark&#39;, the mnesia folder sometimes can take up much space(e.g. 19G), it is basically taken by &#39;msg_store_transient&#39; folder. I don&#39;t understand why.</div>
<div class="gmail_extra" style>&nbsp; &nbsp;- action: none</div><div class="gmail_extra" style>6. sometimes rabbit doesn&#39;t push message to consumers in time: I found some consumers don&#39;t get message from time to time even there are messages in the queue. But this seems to be transient (lasting for about 1 minute).&nbsp;</div>
<div class="gmail_extra" style>&nbsp; &nbsp;- action: none</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>Thanks.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 11, 2013 at 12:55 AM, Matthias Radestock <span dir="ltr">&lt;<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 09/07/13 15:59, Rubo Liang wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
My rabbit eats 25G memory, but the queues don&#39;t take to much as shown by<br>
this command: &#39;rabbitmqctl list_queues name messages memory&#39;:<br>
Listing queues ...<br>
ha.snssdk.log &nbsp; 695954 &nbsp;16426216<br>
ha.snssdk.log.dispatch &nbsp;660748 &nbsp;102698808<br>
ha.snssdk.log.output &nbsp; &nbsp;63573 &nbsp; 32800680<br>
ssesion 0 &nbsp; &nbsp; &nbsp; 25952<br>
ssesion.log &nbsp; &nbsp; 101 &nbsp; &nbsp; 436328<br>
ssesion.output &nbsp;0 &nbsp; &nbsp; &nbsp; 148816<br>
...done.<br>
<br>
As shown above the queues only take about 150M memory. But the rabbit<br>
process actually takes about 25G.<br>
<br>
&#39;rabbitmqctl status&#39; gives me following output on memory:<br>
<br>
&nbsp; {memory,<br>
&nbsp; &nbsp; &nbsp; [{total,25394382848},<br>
&nbsp; &nbsp; &nbsp; &nbsp;{connection_procs,140253648},<br>
&nbsp; &nbsp; &nbsp; &nbsp;{queue_procs,19311874888},<br>
</blockquote>
<br></div>
So that shows queue processes taking up 19G. Perhaps you have queue&#39;s in vhosts other than &#39;/&#39;? Note that &#39;rabbitmqctl list_queues&#39; only shows information on one vhost (&#39;/&#39; by default).<span class=""><font color="#888888"><br>

<br>
Matthias.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">���겨<div>�ֻ���+86-18600464396</div><div>��ַ��<span style="color:rgb(0,0,0);font-family:Arial,Helvetica,FreeSans,sans-serif;font-size:13.63636302947998px;line-height:15.454545021057129px">�����к�����֪��·��48��ӯ������B��10��</span></div>
<div><font face="Arial, Helvetica, FreeSans, sans-serif"><span style="line-height:17px">�ʱࣺ100088</span></font></div><div><font face="Arial, Helvetica, FreeSans, sans-serif"><span style="line-height:17px"><br></span></font></div>
</div>
</div></div></div>