Before clearing memory, let’s check the current memory usage.
Command: free -m
Then use the memory clearing command: echo 1 > /proc/sys/vm/drop_caches
After running the clearing command, you can use the check command again: free -m, to see if a significant amount of memory has been freed up.
ps aux results sorted by memory usage
ps -aux | sort -k4,4n