Skip to content

Default memory-high watermark might be too high #965

Closed
@phunehehe

Description

@phunehehe

In a production workload we are observing that RabbitMQ can use up to 5 times the memory-high watermark.

Reading https://www.rabbitmq.com/memory.html and looking at the resource usage, it seems to me this could happen when RabbitMQ pages queue contents out to disk. In the graph below you can see that the number of messages (blue) increases gradually, while the amount of free memory (orange) dropped abruptly.

screenshot from 2016-09-16 13 40 27

For this setup we are running a cluster with 2 nodes, each having 8GB of RAM. The memory-high watermark is configured at 10%. At the bottom of the valley, RabbitMQ was using ~ 4GB of RAM.

Assuming a somewhat linear relationship between the watermark and the peak memory usage, the watermark is about 20% of the peak. If RabbitMQ is to use 75% of RAM at its peak, the watermark should be at (75% * 20% =) 15%. Could somebody validate my thoughts here?

Another way to put this is, the GC or paging activities could be improved, but I don't know enough about RabbitMQ to say what is what.

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