Skip to content

Respect container memory limits #34

Description

@rueberger

Apologies if this isn't the best place for this issue.

I've noticed that with docker 17.12.0-ce and the mongo:3.4.1 image, memory limits imposed on the container are not "respected" by mongo. What I mean by this is that mongo seems to not recognize the memory limit and tries to use the full memory of the host system.

This leads to bad things happening when memory fills up - mongo starts spilling into swap and performance slows to a crawl.

I would rather not give mongo unrestricted access to the host's memory, or be forced to periodically kill mongod.

I considered explicitly limiting the cache size for WiredTiger, but that's no good because the file-system cache is still unbounded.

Any ideas for a workaround?

Activity

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