Out of memory (OOM) occurs during the migration of MongoDB databases, causing migration failures.
The possible causes are as follows:
By default, the memory used by the WiredTiger engine of mongod is calculated as follows: (Memory in GB-1) x 50% for version 3.2 or (Memory in GB-1) x 50% for version 3.4 and later.