Here's how you can check your memory usage in real time in Ubuntu.
1. Open a terminal window.
2. Type in the following command then hit Enter.
watch -n 1 free -m 3.
You can also use this command:
watch -n 1 cat /proc/meminfo
For more, see the original article at the link below.