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.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
migrated from stackoverflow.com Jan 6 '13 at 14:35
This question came from our site for professional and enthusiast programmers.
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.
It is possible using cgroups.
Some tutorials are available as well as shell script for Ubuntu 14.04.
See also Is there any option to limit mongodb memory usage? on Stack Overflow.