MongoDB Log Fix: Out of Memory
Symptom
The MongoDB service crashes with an out of memory error. An example log entry:
2017-10-27T10:23:48.348-0400 F - [conn3080] out of memory.
Cause
The MongoDB service crashed because the system ran out of physical and virtual memory. Typically, this is due to misconfigured Page File settings.
Resolution
If you are receiving this error, the Netwrix Change Tracker database and Hub Server are NOT functioning. This is a critical error and monitoring cannot continue until it is resolved. To resolve this error:
-
Open Run by pressing the
Windows+Rkeys on your keyboard. -
Type
SYSDM.CPLand press Enter. -
This opens Advanced System Settings. Click on the Advanced tab.
-
Under Performance, click Settings....
-
In the Performance Options menu, click the Advanced tab.
-
Under Virtual Memory, click Change.
-
Verify that Virtual Memory is set to System managed.
-
If it is not set to System managed, configure it by selecting the System managed size radio button.
-
Click OK.
-
In some scenarios, it may be best to reboot the server.
NOTE: MongoDB reserves as much memory as it can and stores queries in the page file for quick access. When the page file is not set to system managed, it can hit its size limit and crash MongoDB. System managed sizing lets Windows expand the page file as needed.