Find Processes Eating Your SWAP Memory on Linux and Build Alert Script

What is Eating my SWAP Memory

Finding Processes Eating SWAP Create Monitoring Script

In this article i will show you how to find the SWAP memory usage and create a script to monitor it and send an email whenever it's lower than certain size.

Find SWAP used and free space

free -m

Or

cat /proc/meminfo | grep -i swap

vmstat

Find out processes

Continue reading