Hello all,<div><br></div><div>I have been doing some research over the past weeks unsuccessfully.</div><div><br></div><div>Let me explain, now I have an Ubuntu 2.6.32-38-server machine with rabbitmq 2.8.1 running.</div><div>
As you can see below the file descriptor is just is 1024 (924 at the moment) and the socket limit is 829.</div><div><br></div><div><div><b>patilla@test: sudo /etc/init.d/rabbitmq-server status</b></div><div>Status of node rabbit@SmartShaperTest ...</div>
<div>[{pid,29119},</div><div> {running_applications,</div><div> [{rabbitmq_management,"RabbitMQ Management Console","2.8.1"},</div><div> {rabbitmq_management_agent,"RabbitMQ Management Agent","2.8.1"},</div>
<div> {amqp_client,"RabbitMQ AMQP Client","2.8.1"},</div><div> {rabbit,"RabbitMQ","2.8.1"},</div><div> {os_mon,"CPO CXC 138 46","2.2.4"},</div><div>
{sasl,"SASL CXC 138 11","2.1.8"},</div><div> {rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.8.1"},</div><div> {webmachine,"webmachine","1.7.0-rmq2.8.1-hg"},</div>
<div> {mochiweb,"MochiMedia Web Server","1.3-rmq2.8.1-git"},</div><div> {inets,"INETS CXC 138 49","5.2"},</div><div> {mnesia,"MNESIA CXC 138 12","4.4.12"},</div>
<div> {stdlib,"ERTS CXC 138 10","1.16.4"},</div><div> {kernel,"ERTS CXC 138 10","2.13.4"}]},</div><div> {os,{unix,linux}},</div><div> {erlang_version,</div><div> "Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threa ds:30] [hipe] [kernel-poll:true]\n"},</div>
<div> {memory,</div><div> [{total,54392152},</div><div> {processes,32356128},</div><div> {processes_used,24209504},</div><div> {system,22036024},</div><div> {atom,1330113},</div><div> {atom_used,1302718},</div>
<div> {binary,223152},</div><div> {code,15383701},</div><div> {ets,2900344}]},</div><div> {vm_memory_high_watermark,0.4},</div><div> {vm_memory_limit,842620928},</div><div><font color="#ff0000" face="'arial black', sans-serif"> {file_descriptors,</font></div>
<div><font color="#ff0000" face="'arial black', sans-serif"> [{total_limit,924},{total_used,3},{sockets_limit,829},{sockets_used,1}]},</font></div><div> {processes,[{limit,1048576},{used,178}]},</div><div> {run_queue,0},</div>
<div> {uptime,2352}]</div><div>...done.</div></div><div><br></div><div><br></div><div>Well, I also had rabbitmq running before in another machine (OLD machine from now on), same files, same code, the only difference was rabbit's version, 2.7.1</div>
<div><br></div><div>On the OLD machine I managed to increase these limits (file and socket) by editting the /etc/security/limits.conf file as shown:</div><div><br></div><div><div><b>rabbitmq soft nofile 10011</b></div>
<div>
<b>rabbitmq hard nofile 65000</b></div></div><div><br></div><div>And adding the following line to <b>/etc/pam.d/common-session{,-noninteractive}</b> </div><div><b>session required pam_limits.so</b></div><div><b><br></b></div>
<div><b><br></b></div><div>This worked fine, and on the rabbit management plugin I could see these changes:</div><div><br></div><div><img src="cid:ii_136c0c35e1ad9f2d" alt="Imágenes integradas 1"><br></div><div><br></div>
<div>When I tried to do the same on the NEW machine it seems like it is not working fine.</div><div><br></div><div>When I execute <b>ulimit -n</b> with rabbitmq user I get the same value as<b> limits.conf</b>, but in the management site......</div>
<div><br></div><div><b>rabbit@test: ulimit -n </b></div><div>10011</div><div><br></div><div><br></div><div><img src="cid:ii_136c0c5b5a6da59b" alt="Imágenes integradas 2"><br></div><div><br></div><div><br></div><div>Any thoughts?</div>
<div><br></div><div>I can't find the error..... Could it be the version?</div><div><br></div><div><br></div><div>Thanks for your response in advance.</div><div><br></div><div><br></div><div>patilla.</div><div><br></div>
<div><br></div>