Forum Discussion
sk_330490
Oct 09, 2018Nimbostratus
Run below command from bash. This will give the list of processes and the swap memory used. Over a period of time, you can take these stats to find the top swap memory consuming process.
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less