<div dir="ltr">Thanks Simone! I figured there was something like this. And the discussion you referenced is also very helpful.<div><br></div><div>Matt</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 11:54 AM, Simone Sciarrati <span dir="ltr">&lt;<a href="mailto:s.sciarrati@gmail.com" target="_blank">s.sciarrati@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
As reported in this message<br>
<a href="http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2012-April/019446.html" target="_blank">http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2012-April/019446.html</a><br>
you should be able to do:<br>
<br>
rabbitmqctl eval &#39;application:stop(rabbitmq_management).&#39;<br>
rabbitmqctl eval &#39;application:start(rabbitmq_management).&#39;<br>
<br>
to just restart the management plugin. I have had the same issue and<br>
stopping/starting the management app dropped the memory usage, in my<br>
case it took 2/3 minutes to complete the command but the node remained<br>
functional during the operation (if I remember correctly we had a<br>
similar amount of memory held by the management db).<br>
<br>
Test before you run :)<br>
<span class="HOEnZb"><font color="#888888"><br>
Simone<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Nov 21, 2013 at 8:24 PM, Matt Pietrek &lt;<a href="mailto:mpietrek@skytap.com">mpietrek@skytap.com</a>&gt; wrote:<br>
&gt; Thanks Michael and Simon - This is immensely helpful. Just knowing some<br>
&gt; place to focus on is great. Given the nature of the issues, it appears<br>
&gt; consistent with what we&#39;ve observed in our various test scenarios.<br>
&gt;<br>
&gt; I&#39;ve got 3.2.1 running in a different cluster for testing. Hopefully it will<br>
&gt; validate quickly and we can move to it sooner rather than later.<br>
&gt;<br>
&gt; One more question - Without restarting the broker, is there any way to<br>
&gt; restart just the management agent and/or force a GC so as to clean up<br>
&gt; memory? This might buy us some time until we can upgrade.<br>
&gt;<br>
&gt; Thanks again,<br>
&gt;<br>
&gt; Matt<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Nov 21, 2013 at 4:11 AM, Simon MacMullen &lt;<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 21/11/13 02:47, Matt Pietrek wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The management database at 1.3GB seems excessive.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; To add to what Michael said: yes, this is excessive. Almost certainly one<br>
&gt;&gt; of the leaks we&#39;ve fixed since 3.0.2.<br>
&gt;&gt;<br>
&gt;&gt; As a rule of thumb I would expect the management DB to take about as much<br>
&gt;&gt; memory as Mnesia. Certainly within an order of magnitude anyway.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m reluctant to get into tracking down exactly which old bug you are<br>
&gt;&gt; seeing :-) but there were definitely leaks in 3.0.2 such that:<br>
&gt;&gt;<br>
&gt;&gt; * Connection and channel data was never cleaned up for nodes that crashed<br>
&gt;&gt;<br>
&gt;&gt; * Consumer records might not be cleaned up<br>
&gt;&gt;<br>
&gt;&gt; * Fine stats were issued for queue slaves and never cleaned up even when<br>
&gt;&gt; the queue was deleted<br>
&gt;&gt;<br>
&gt;&gt; If you can&#39;t upgrade, in addition to the suggestions Michael made<br>
&gt;&gt; (increase the stats interval or disable the management plugin) there&#39;s a<br>
&gt;&gt; halfway house: disable fine stats collection<br>
&gt;&gt; (<a href="http://previous.rabbitmq.com/v3_0_x/management.html#fine-stats" target="_blank">http://previous.rabbitmq.com/v3_0_x/management.html#fine-stats</a>). This will<br>
&gt;&gt; stop you seeing message rates but will prevent some of those leaks.<br>
&gt;&gt;<br>
&gt;&gt; Cheers, Simon<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Simon MacMullen<br>
&gt;&gt; RabbitMQ, Pivotal<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt; <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
&gt;<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>