Answer Posted / Nikhil Singh Pundir
The amount of memory required for MongoDB depends on the size of your data, the number of connections, and the operations you perform. It's essential to monitor the performance and adjust the memory settings accordingly.
Here are some tips for setting the working set (wiredTigerCacheSizeGB) and the journaling file size (journal COMMAND_MAX):
- Start with 1 GB of wiredTigerCacheSizeGB if you have more than 4 GB of RAM, or a smaller value if your system has less memory.
- Set journal COMMAND_MAX to around 256 MB for small collections and up to 512 MB for larger collections.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers