[rabbitmq-discuss] limits.conf not working...

Gonzalo Fernandez gonzalo.fernandez at stoneworksolutions.net
Tue Apr 17 16:05:41 BST 2012


Hello all,

I have been doing some research over the past weeks unsuccessfully.

Let me explain, now I have an Ubuntu 2.6.32-38-server machine with rabbitmq
2.8.1 running.
As you can see below the file descriptor is just is 1024 (924 at the
moment) and the socket limit is 829.

*patilla at test: sudo /etc/init.d/rabbitmq-server status*
Status of node rabbit at SmartShaperTest ...
[{pid,29119},
 {running_applications,
     [{rabbitmq_management,"RabbitMQ Management Console","2.8.1"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","2.8.1"},
      {amqp_client,"RabbitMQ AMQP Client","2.8.1"},
      {rabbit,"RabbitMQ","2.8.1"},
      {os_mon,"CPO  CXC 138 46","2.2.4"},
      {sasl,"SASL  CXC 138 11","2.1.8"},
      {rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.8.1"},
      {webmachine,"webmachine","1.7.0-rmq2.8.1-hg"},
      {mochiweb,"MochiMedia Web Server","1.3-rmq2.8.1-git"},
      {inets,"INETS  CXC 138 49","5.2"},
      {mnesia,"MNESIA  CXC 138 12","4.4.12"},
      {stdlib,"ERTS  CXC 138 10","1.16.4"},
      {kernel,"ERTS  CXC 138 10","2.13.4"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:4:4] [rq:4]
[async-threa      ds:30] [hipe] [kernel-poll:true]\n"},
 {memory,
     [{total,54392152},
      {processes,32356128},
      {processes_used,24209504},
      {system,22036024},
      {atom,1330113},
      {atom_used,1302718},
      {binary,223152},
      {code,15383701},
      {ets,2900344}]},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,842620928},
 {file_descriptors,

 [{total_limit,924},{total_used,3},{sockets_limit,829},{sockets_used,1}]},
 {processes,[{limit,1048576},{used,178}]},
 {run_queue,0},
 {uptime,2352}]
...done.


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

On the OLD machine I managed to increase these limits (file and socket) by
editting the /etc/security/limits.conf file as shown:

*rabbitmq  soft  nofile 10011*
*rabbitmq  hard  nofile 65000*

And adding the following line to *
/etc/pam.d/common-session{,-noninteractive}*
*session required pam_limits.so*
*
*
*
*
This worked fine, and on the rabbit management plugin I could see these
changes:

[image: Imágenes integradas 1]

When I tried to do the same on the NEW machine it seems like it is not
working fine.

When I execute *ulimit -n* with rabbitmq user I get the same value
as*limits.conf
*, but in the management site......

*rabbit at test: ulimit -n *
10011


[image: Imágenes integradas 2]


Any thoughts?

I can't find the error..... Could it be the version?


Thanks for your response in advance.


patilla.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120417/586a2ad6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 14690 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120417/586a2ad6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 15290 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120417/586a2ad6/attachment-0001.png>


More information about the rabbitmq-discuss mailing list