Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is there any way to limit using RAM for mongodb on Debian? I'm looking for a solution fo about 8 hours, but have no results.

share|improve this question

migrated from stackoverflow.com Jan 6 '13 at 14:35

This question came from our site for professional and enthusiast programmers.

You could use ulimit but it could effect performance if your working set exceeds the amount you allocate –  Sammaye Jan 5 '13 at 23:42
This question indicates the OP has not read or not understood the basics about MongoDB's memory management aka the usage of memory mapped files....tinkerers running a database.... –  CRUSADER Jan 6 '13 at 7:47

1 Answer 1

I have heard that some folks have had success using lxc to isolate MongoDB on Linux. There are other container technologies out there, but that seems to be the most mainstream option.

share|improve this answer
thx, now i will try to use it. Try to describe my attempts later –  Nikita Platonenko Jan 6 '13 at 0:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.