If you are using MongoDB on a dedicated server then you generally want it to use all the memory it can but if you want to use it on a server shared with other processes then you will want to put a cap on how much it uses to ensure memory is kept available for the other processes.
So is it possible if you are not on a virtualized environment? Yes and we’ll explore how
The question of limiting MongoDB memory pops up quite often and this is an unexpected solution. But I’m not sure how many will start using Windows 2003 or Windows 2008 on shared servers just to have memory resource management.
Original title and link: Limit MongoDB memory use on Windows without Virtualization (NoSQL databases © myNoSQL)