Problem
Services with high memory utilization are dying sporadically.
Solution
Run the following command to get a list of processes killed by oom.
Useful articles:
1. How to troubleshoot OOM
https://access.redhat.com/solutions/2612861
2. How to add swap file to Linux Azure VM
https://support.microsoft.com/en-us/help/4010058/how-to-add-a-swap-file-in-linux-azure-virtual-machines
Services with high memory utilization are dying sporadically.
Solution
Run the following command to get a list of processes killed by oom.
dmesg | egrep -i 'killed process'
Useful articles:
1. How to troubleshoot OOM
https://access.redhat.com/solutions/2612861
2. How to add swap file to Linux Azure VM
https://support.microsoft.com/en-us/help/4010058/how-to-add-a-swap-file-in-linux-azure-virtual-machines
vi /etc/waagent.conf
ResourceDisk.Format=y
ResourceDisk.EnableSwap=y
ResourceDisk.SwapSizeMB=xx
service walinuxagent restart