... Playbook #2

High Memory Utilization of Server(%)

High memory utilization over a period of time can cause problems. The playbook helps in determine the reason for this increase including memory consumption by processes, incorrect system or underlying host configuration, etc.

Check Availabilable Memory
                              
free -h
                              
                            
Get top processes by memory usage
                              
ps aux --sort -rss | head -n 10
                              
                            
Get top 5 processes with pid,ppid by cpu/memory usage
                              
ps -eo pid,ppid,%mem,%cpu,cmd --sort=-%mem | head -5
                              
                            
Check Memory ballooning status
                              
vmware-toolbox-cmd stat balloon
                              
                            
Check syslogs for out of memory errors
                              
grep -i "out of memory" /var/log/syslog
                              
                            
Check memorylogs for out of memory errors
                              
grep -i "out of memory" /var/log/messages