Merek,<div><br></div><div>Thank you! I installed the management plugin and I could see the file descriptors increasing until the limit.�</div><div>Then I set the limit using the command you suggest (ulimit -n).</div><div>Everything worked fine.</div>

<div>One more question, I would like to know where did you find that��&quot;{error,emfile}&quot; is�(errno 24 - &quot;too many file descriptors opened&quot;).</div><div><br></div><div>Thank you again, you really help me!</div>

<div><br></div><div>Cheers,</div><div><br></div><div>Bruno Carneiro</div><div><br></div><div><br><div class="gmail_quote">2011/11/28 Marek Majkowski <span dir="ltr">&lt;<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Nov 28, 2011 at 18:57, Bruno Carneiro &lt;<a href="mailto:brunoac88@gmail.com">brunoac88@gmail.com</a>&gt; wrote:<br>


&gt; Hi Folks,<br>
&gt; I&#39;m using Rabbit 2.6.1 with the plugins:<br>
&gt; * amqp_client-2.6.1<br>
&gt; * mochiweb-1.3-rmq2.6.1-git9a53dbd<br>
&gt; * rabbitmq_jsonrpc-2.6.1<br>
&gt; * rabbitmq_jsonrpc_channel-2.6.1<br>
&gt; * rabbitmq_jsonrpc_channel_examples-2.6.1<br>
&gt; * rabbitmq_mochiweb-2.6.1<br>
&gt; * rfc4627_jsonrpc-2.6.1-git30c8498<br>
&gt; * webmachine-1.7.0-rmq2.6.1-hg0c4b60a<br>
&gt;<br>
&gt; When I start Rabbit it goes down after a few minutes. Using list_queues I<br>
&gt; get:<br>
&gt; unable to connect to node rabbit@HackSprintFreud: nodedown<br>
&gt; Logs:<br>
&gt; =ERROR REPORT==== 28-Nov-2011::16:46:58 ===<br>
&gt; � � application: mochiweb<br>
&gt; � � &quot;Accept failed error&quot;<br>
&gt; � � &quot;{error,emfile}&quot;<br>
<br>
<br>
</div>Just a blind guess:<br>
�EMFILE (errno 24 - &quot;too many file descriptors opened&quot;)<br>
<br>
Maybe you have too many files opened? You can see<br>
the numbers using management plugin.<br>
<br>
On linux you can increase the limit by running<br>
`ulimit -n &lt;number&gt;`, but you have to be root.<br>
<br>
Usually, rabbit tries to optimize the usage of file descriptors,<br>
in case when you have many queues it can mean that rabbit<br>
opens loads of files. But as you open more and more network<br>
sockets the number of opened files should drop.<br>
<br>
This may not be a case for jsonrpc - AFAIK it doesn&#39;t have<br>
code for dealing with usual rabbitmq file descriptor<br>
counters. Theoretically in that case, when you have many<br>
files opened by jsonrpc - you may hit the wall.<br>
<br>
I suggest run the management plugin and checking the<br>
file descriptors counters, trying to get understanding about<br>
jsonrpc plugin usage. And increasing the file descriptor<br>
limit if necessary.<br>
<br>
Cheers,<br>
 � �Marek<br>
</blockquote></div><br></div>