How to clear memory cache?

Linux OS has an efficient memory management system used to clear the buffer cache periodically. For your information, cache is used to keep data to use frequently by operating system. Reading data from cache if 1000’s time faster than reading data from hard drive.

How to clear memory cache?

You can manually clear the memory cache with the following simple command:
  1. Type the command free, to check what is the available server memory. 
  2. Then type the command : echo 3 > /proc/sys/vm/drop_caches

Comments