Mongodb ограничение памяти

mikanewman

Создатель
Регистрация
18 Авг 2011
Сообщения
16
Реакции
1
MongoDB очень хороша, но у нее есть один минус, она сжирает все память которая есть. Если кто-то знает как ее приструнить, поделитесь рецептом!
 
не стоит этим заморачиваться. Если другим процессам понадобится память - она отдаст сама:

MongoDB will (at least seem) to use up a lot of available memory, but it actually leaves it up to the OS's VMM to tell it to release the memory (see Caching in the MongoDB docs.)

Для просмотра ссылки Войди или Зарегистрируйся
Depending on the platform you may see the mapped files as memory in the process (see the Virtual Memory section below), but this is not strictly correct. Unix top may show way more memory for mongod than is really appropriate for what is in physical memory. The Operating System (the virtual memory manager specifically, depending on OS) manages the memory where the "Memory Mapped Files" reside. This number is usually shown in a program like "free -lmt".
 
Назад
Сверху