Hello all,<div><br></div><div>We recently moved from RabbitMQ 1.8 to 2.3.1 on production and since then we have noticed that after a few days of operations the brokers will get into a mode where they use a lot of cpu to the point where it gets impossible to even use SSH on the machines. This seems to get triggered when many queues get deleted. Inspecting the broker (OS) processes with etop indicates a lot of reductions in (Erlang) processes that are currently executing prim_file:drv_get_response. This is�correlated�by the collectd daemon showing &gt; 12,000 reads / sec and &gt; 2000 writes /sec ! These disks access don&#39;t end up hitting the actual disk (are served by the OS cache) hence the high�throughput.</div>
<div><br></div><div>It seems to always be the same processes causing this (around 20). Looking at the state of one using sys:get_status returns [1]. Looks like a queue process. There are about 9K queues on the brokers when this happens and ~60K messages. Up to this happening the brokers hover around 40% cpu usage peaking at 60% when the message store is combining the messages (about every 5 minutes with our throughput).</div>
<div><br></div><div>It&#39;s interesting that this seems to be caused by a small amount of queue processes, always the same that come up in etop. Also the CPU graph is a direct reflection of the disk ops graph.�</div><div>
<br></div><div>So what are the scenarios that will cause a queue process to access the disk in what looks like an infinite loop? Anything else that could be causing this behavior?</div><div><br></div><div>Thanks!</div><div>
<br></div><div>--</div><div>Raphael.</div><div><br></div><div>[1]</div><div>{status,&lt;0.17050.0&gt;,</div><div><div>�� � � �{module,gen_server2},</div><div>�� � � �[[{{#Ref&lt;0.0.1.210978&gt;,fhc_handle},</div><div>�� � � � � {handle,{file_descriptor,prim_file,{#Port&lt;0.29642&gt;,8437}},</div>
<div>�� � � � � � � � � 0,0,false,576,infinity,</div><div>�� � � � � � � � � [[&lt;&lt;192,0,0,0,0,0,64,144&gt;&gt;],</div><div>�� � � � � � � � � �[&lt;&lt;128,0,0,0,0,0,64,144&gt;&gt;],</div><div>�� � � � � � � � � �[&lt;&lt;0,0,0,0,0,0,65,166&gt;&gt;,</div>
<div>�� � � � � � � � � � [&lt;&lt;218,154,254,188,128,203,224,...&gt;&gt;,</div><div>�� � � � � � � � � � �&lt;&lt;0,4,161,101,66,238,...&gt;&gt;]],</div><div>�� � � � � � � � � �[&lt;&lt;192,0,0,0,0,0,64,143&gt;&gt;],</div>
<div>�� � � � � � � � � �[&lt;&lt;128,0,0,0,0,0,64,...&gt;&gt;],</div><div>�� � � � � � � � � �[&lt;&lt;0,0,0,0,0,0,...&gt;&gt;,</div><div>�� � � � � � � � � � [&lt;&lt;134,78,165,193,...&gt;&gt;,&lt;&lt;0,4,161,...&gt;&gt;]],</div>
<div>�� � � � � � � � � �[&lt;&lt;192,0,0,0,0,...&gt;&gt;],</div><div>�� � � � � � � � � �[&lt;&lt;128,0,0,0,...&gt;&gt;],</div><div>�� � � � � � � � � �[&lt;&lt;0,0,0,...&gt;&gt;,[&lt;&lt;&quot;u&lt;&quot;...&gt;&gt;,&lt;&lt;...&gt;&gt;]],</div>
<div>�� � � � � � � � � �[&lt;&lt;192,0,...&gt;&gt;],</div><div>�� � � � � � � � � �[&lt;&lt;128,...&gt;&gt;],</div><div>�� � � � � � � � � �[&lt;&lt;...&gt;&gt;|...],</div><div>�� � � � � � � � � �[...]|...],</div><div>�� � � � � � � � � true,</div>
<div>�� � � � � � � � � &quot;/var/lib/rabbitmq/mnesia/rabbit@broker1-2/queues/FIN41VKU7DXMV7IZOJED8MUO/journal.jif&quot;,</div><div>�� � � � � � � � � [write,binary,raw,read],</div><div>�� � � � � � � � � [{write_buffer,infinity}],</div>
<div>�� � � � � � � � � true,true,</div><div>�� � � � � � � � � {1303,269920,172427}}},</div><div>�� � � � �{{#Ref&lt;0.0.474.103189&gt;,fhc_handle},</div><div>�� � � � � {handle,{file_descriptor,prim_file,{#Port&lt;0.116464&gt;,596}},</div>
<div>�� � � � � � � � � 15487841,0,false,0,1048576,[],false,</div><div>�� � � � � � � � � &quot;/var/lib/rabbitmq/mnesia/rabbit@broker1-2/msg_store_persistent/0.rdq&quot;,</div><div>�� � � � � � � � � [raw,binary,read],</div>
<div>�� � � � � � � � � [{write_buffer,1048576}],</div><div>�� � � � � � � � � false,true,</div><div>�� � � � � � � � � {1303,269928,232634}}},</div><div>�� � � � �{&#39;$ancestors&#39;,[rabbit_amqqueue_sup,rabbit_sup,&lt;0.131.0&gt;]},</div>
<div>�� � � � �{{&quot;/var/lib/rabbitmq/mnesia/rabbit@broker1-2/msg_store_persistent/0.rdq&quot;,</div><div>�� � � � � �fhc_file},</div><div>�� � � � � {file,1,false}},</div><div>�� � � � �{fhc_age_tree,{2,</div><div>�� � � � � � � � � � � � {{1303,269920,172427},</div>
<div>�� � � � � � � � � � � � �#Ref&lt;0.0.1.210978&gt;,nil,</div><div>�� � � � � � � � � � � � �{{1303,269928,232634},#Ref&lt;0.0.474.103189&gt;,nil,nil}}}},</div><div>�� � � � �{{&quot;/var/lib/rabbitmq/mnesia/rabbit@broker1-2/queues/FIN41VKU7DXMV7IZOJED8MUO/journal.jif&quot;,</div>
<div>�� � � � � �fhc_file},</div><div>�� � � � � {file,1,true}},</div><div>�� � � � �{&#39;$initial_call&#39;,{gen,init_it,6}}],</div><div>�� � � � running,&lt;0.10398.0&gt;,[],</div><div>�� � � � [{header,&quot;Status for generic server &lt;0.17050.0&gt;&quot;},</div>
<div>�� � � � �{data,[{&quot;Status&quot;,running},</div><div>�� � � � � � � � {&quot;Parent&quot;,&lt;0.10398.0&gt;},</div><div>�� � � � � � � � {&quot;Logged events&quot;,[]},</div><div>�� � � � � � � � {&quot;Queued messages&quot;,[]}]},</div>
<div>�� � � � �{data,[{&quot;State&quot;,</div><div>�� � � � � � � � �{q,{amqqueue,{resource,&lt;&lt;&quot;/right_net&quot;&gt;&gt;,queue,</div><div>�� � � � � � � � � � � � � � � � � � � � &lt;&lt;&quot;nanite-rs-instan&quot;...&gt;&gt;},</div>
<div>�� � � � � � � � � � � � � � � true,false,none,</div><div>�� � � � � � � � � � � � � � � [{&lt;&lt;&quot;x-messag&quot;...&gt;&gt;,signedint,86400000}],</div><div>�� � � � � � � � � � � � � � � &lt;0.17050.0&gt;},</div>
<div>�� � � � � � � � � � none,false,rabbit_variable_queue,</div><div>�� � � � � � � � � � {vqstate,{[],[]},</div><div>�� � � � � � � � � � � � � � �{0,{[],...}},</div><div>�� � � � � � � � � � � � � � �{delta,undefined,...},</div>
<div>�� � � � � � � � � � � � � � �{277,...},</div><div>�� � � � � � � � � � � � � � �{...},...},</div><div>�� � � � � � � � � � {[],[]},</div><div>�� � � � � � � � � � {[],[]},</div><div>�� � � � � � � � � � undefined,</div>
<div>�� � � � � � � � � � {1303269928237652,#Ref&lt;0.0.1710.21035&gt;},</div><div>�� � � � � � � � � � {1303269928766020,...},</div><div>�� � � � � � � � � � undefined,...}}]}]]}</div></div>