Rule of thumb for sizing memory

Hi, I realize MongoDB requires a lot of RAM in order to accommodate for the queries . Is there a rule of thumb of how to determine the required size for it?

QuerieS or a query?
Do you mean processing or mongo process? Utilization of RAM is natural based on set of indexes and size of memory that has been set for the mongod process. If it is because of running query then you will have to narrow down which step/query is that (likely sort or something like sort/groupby/group/etc from aggregation pipeline) and start there.

Hi @Tamar_40496,

Please go through following documentation links to get an idea about the memory usage:

You might get a clearer picture after this.
Please let me know, if you have any questions.


Thanks Sonali, I can work with that for now.