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 "{error,emfile}" is (errno 24 - "too many file descriptors opened").</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"><<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>></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 <<a href="mailto:brunoac88@gmail.com">brunoac88@gmail.com</a>> wrote:<br>
> Hi Folks,<br>
> I'm using Rabbit 2.6.1 with the plugins:<br>
> * amqp_client-2.6.1<br>
> * mochiweb-1.3-rmq2.6.1-git9a53dbd<br>
> * rabbitmq_jsonrpc-2.6.1<br>
> * rabbitmq_jsonrpc_channel-2.6.1<br>
> * rabbitmq_jsonrpc_channel_examples-2.6.1<br>
> * rabbitmq_mochiweb-2.6.1<br>
> * rfc4627_jsonrpc-2.6.1-git30c8498<br>
> * webmachine-1.7.0-rmq2.6.1-hg0c4b60a<br>
><br>
> When I start Rabbit it goes down after a few minutes. Using list_queues I<br>
> get:<br>
> unable to connect to node rabbit@HackSprintFreud: nodedown<br>
> Logs:<br>
> =ERROR REPORT==== 28-Nov-2011::16:46:58 ===<br>
> application: mochiweb<br>
> "Accept failed error"<br>
> "{error,emfile}"<br>
<br>
<br>
</div>Just a blind guess:<br>
EMFILE (errno 24 - "too many file descriptors opened")<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 <number>`, 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'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>