I have an ubuntu vps running that has about 300MB of memory, of which only 20% or less is free right now …
My question is, how can I figure out what particular program I'm running that is causing it to swap so much?
Linux – How to Diagnose System Swapping Issues
linuxswap
Related Topic
- Ubuntu – Memory is free, but still swapping
- Linux – Why is ‘chmod -R 777 /’ Destructive?
- Linux – How to find what is using linux swap or what is in the swap
- Ubuntu – Docker using huge amount of swap memory on Ubuntu 15.04, why
- Linux – How to get the Linux OOM killer to not kill the process
- Linux – How to check the content of swap memory in Linux
Best Answer
To find out the amount of swap space used by every process, run
top
(nothtop
), press 'f' to select columns (f for fields) to display, press 'p' to add swap to display, press 'o' to sort the table (o for order by) and press 'p' again to order by swap usage.