Display the real-time memory usage in Linux
by Rekha[ Edit ] 2009-11-16 14:34:08
We need to monitor our Linux server memory usage, "watch" is a handy command to display the real-time memory usage in Linux.
watch – execute a program periodically, showing output fullscreen
We can issue the following command to keep track the real time memory usage in Linux.
watch -d free -m
The memory usage will update every 2 seconds, and the difference will be highlighted.