4 ms·
I always find it annoying that you can't really restrict MongoDBs memory consumption. I'd love to run it alongside a ElasticSearch process and a small redis se
by rb2k_ 15y ago
I always find it annoying that you can't really restrict MongoDBs memory consumption.
I'd love to run it alongside a ElasticSearch process and a small redis server on a machine, but while I can limit ElasticSearch and I could theoretically limit Redis, MongoDB would just grow as far as I understood (mmapped I/O).
I'd love to use it as a second copy of the data in ElasticSearch
- latch 15y agoI agree being able to put a hard limit, in some situations, might be nice. However, I believe the current implementation pretty much leaves memory management up to the OS, which, hey, I'm no expert, but sounds reasonable to me. MongoDB won't starve other processes of memory unless the OS decides it should. It seems like the best way to leverage the most amount of available memory.