Skip to content

rabbitmq:3 does not start due to invalid vm_memory_high_watermark setting  #148

Closed

Description

@rjeczalik

Possible regression of d2bd71d.

In CirlceCI environment starting rabbitmq:3 fails with:

=INFO REPORT==== 9-Apr-2017::05:53:45 ===
Memory limit set to 0MB of 60387MB total.

=INFO REPORT==== 9-Apr-2017::05:53:45 ===
vm_memory_high_watermark set. Memory used:73351688 allowed:0

=CRASH REPORT==== 9-Apr-2017::05:53:45 ===
  crasher:
    initial call: rabbit_memory_monitor:init/1
    pid: <0.346.0>
    registered_name: []
    exception exit: {badarg,
                        [{lists,member,[disk,{error,bad_module}],[]},
                         {rabbit_memory_monitor,init,1,
                             [{file,"src/rabbit_memory_monitor.erl"},
                              {line,121}]},
                         {gen_server2,init_it,6,
                             [{file,"src/gen_server2.erl"},{line,554}]},
                         {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,247}]}]}
      in function  gen_server2:init_it/6 (src/gen_server2.erl, line 597)
    ancestors: [rabbit_memory_monitor_sup,rabbit_sup,<0.117.0>]
    messages: []
    links: [<0.345.0>,<0.126.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 27
    reductions: 166
  neighbours:

My guess is that the entrypoint script fails to either read system's available memory or this info is not available.

When I pass RABBITMQ_VM_MEMORY_HIGH_WATERMARK=800MB to the container, it starts as expected.

Activity

  1. aides commented on Apr 10, 2017

    @aides

    We faced with the same today. For now we switched to using rabbitmq:3.6.8 image.
    We're using EC2 instances, just in case.

  2. tianon commented on Apr 10, 2017

    @tianon
    Member

    See also #147 and now #149. 👍

  3. yosifkit commented on Apr 11, 2017

    @yosifkit
    Member

    Fixed via #149. PR to official-images coming shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions