[rabbitmq-discuss] memory usage reporting

Kyle O'Donnell kyleo at 0b10.mx
Wed Apr 24 14:49:19 BST 2013


I've built rabbit (2.8.7 and 3.0.4) from source using R15B03, here are the build time options:

make RABBITMQ_BASE=/x/s/rabbitmq-server-3.0.4 RABBITMQ_LOG_BASE=/x/s/rabbitmq-server-3.0.4/var/log RABBITMQ_CONFIG_FILE=/x/s/rabbitmq-server-3.0.4/etc/rabbitmq RABBITMQ_MNESIA_DIR=/x/s/rabbitmq-server-3.0.4/var/lib/mnesia TARGET_DIR=/x/s/rabbitmq-server-3.0.4 SBIN_DIR=/x/s/rabbitmq-server-3.0.4/sbin MAN_DIR=/x/s/rabbitmq-server-3.0.4/man

When I start my app rabbit quickly reports that it's reached the high watermark for memory usage, and it counts virtual memory not resident memory:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+ COMMAND                                                                                                                29723 prod      20   0 17.9g 269m 2752 S    4  0.8   2:40.80 /x/s/erlang-R15B03/lib/erlang/erts- -W w -K true -A30 -P 1048576 -- -root /x/s/erlang-R15B03/lib/erlang -progname erl -- -home /home/prod -- -pa /x/s/rabbitmq

There is plenty of free memory on the machine

$ free -m
             total       used       free     shared    buffers     cached
Mem:         32178       2992      29186          0        242       1929
-/+ buffers/cache:        820      31358
Swap:         5719          0       5719

Is this normal? Curious why rabbit cares about the virtual memory size when there is so much actual memory available.

below is the output from rabbitmqctl status


rabbitmqctl status
Status of node 'rabbit at p1-amqp-j101' ...
     [{rabbitmq_management_visualiser,"RabbitMQ Visualiser","0.0.0"},
      {rabbitmq_management,"RabbitMQ Management Console","0.0.0"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","0.0.0"},
      {mnesia,"MNESIA  CXC 138 12","4.7.1"},
      {os_mon,"CPO  CXC 138 46","2.2.10"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","0.0.0"},
      {mochiweb,"MochiMedia Web Server","2.3.1-rmq0.0.0-gitd541e9a"},
      {xmerl,"XML parser","1.3.2"},
      {inets,"INETS  CXC 138 49","5.9.2"},
      {amqp_client,"RabbitMQ AMQP Client","0.0.0"},
      {sasl,"SASL  CXC 138 11","2.2.1"},
      {stdlib,"ERTS  CXC 138 10","1.18.3"},
      {kernel,"ERTS  CXC 138 10","2.15.3"}]},
     "Erlang R15B03 (erts- [source] [64-bit] [smp:4:4] [async-threads:30] [hipe] [kernel-poll:true]\n"},

More information about the rabbitmq-discuss mailing list