04-06-2023 01:26 AM
When restoring the MongoDB in Server, the following error may be encounted in the 'mongoRestore.log' file located in the restored MongoDB folder:
runtime: VirtualAlloc of [X] bytes failed with errno=1455
fatal error: out of memory
During the MongoDB restore process, the machine's memory is exhausted so the process did not complete successfully.
Quick question on this!
Is there a way to estimate the required size of the paging file?
I figure this may be possible if you know the [x] value from the error message and/or know the size of the MongoDB?
Hi @JonathanAllenby ,
I don't have a way of estimating the required size of the paging file. We see that setting a paging file size of 40 GB (40,000 MB) generally works. If the MongoDB folder is very large in size, it may be prudent to attempt to reduce the size by doing the following:
Thanks,
Ken
Thanks for the advice!
I did think it was a bit of a stretch to get an exact calculation but this alone is incredibly useful.