Skip to main content

Out of Memory on Linux

Linux will kill processes using a lot of memory when the amount of free memory on the system is too low. SingleStoreDB is often the target process killed. To check if SingleStoreDB was killed by Linux as a result of the system running out of memory, run:

dmesg | grep -i "out of memory"

If the server has rebooted since SingleStoreDB was killed, you can find the logs from the last boot by running:

cat /var/log/kern.log

Linux can be configured to disable this behavior by changing the setting of vm.overcommit_memory or vm.overcommit_ratio, but this is not recommended. It is safer to configure SingleStoreDB to use less memory by setting maximum_memory to a lower value.