0

Does any one know how to limit memory in mongodb 3.0. I already know that it is not possible in mongodb 2.x version. But how to do that in 3.0 (WiredTiger).

Mongodb is eating all the cache in my system.

sangita
  • 191
  • 5
  • 14

1 Answers1

0

I think MongoDB's approach is: Take all there is.

So if you don't want to go to the full blown container route, your best bet is probably cgroups if you're on Linux. Incidentally, Percona has written a blog post about it this week: https://www.percona.com/blog/2015/07/01/using-cgroups-to-limit-mysql-and-mongodb-memory-usage/

xeraa
  • 10,456
  • 3
  • 33
  • 66