This is an old revision of the document!
Clear PageCache only (more safe for ptoduction)
# sync; echo 1 > /proc/sys/vm/drop_caches
Clear dentries and inodes.
# sync; echo 2 > /proc/sys/vm/drop_caches
Clear PageCache, dentries and inodes.
# sync; echo 3 > /proc/sys/vm/drop_caches
Another way
If you want to clear Swap space, you may like to run the below command.
# swapoff -a && swapon -a