X
    Categories: Linux

How To Clear RAM Memory Cache Buffer Linux Server

Sharing is caring!

In this tutorial for How To Clear RAM Memory Cache Buffer Linux Server. Its very important for your linux server for clear buffer cache. Because of when long time running you linux server so its hold buffer cache from your memory then slow your server. But you can clear server buffer cache using very small technique. So lets start and follow below step by step gude.

Step #01: Check your RAM using below command.

free -h

Output as like below:

root@cloud:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          2.4Gi       728Mi       1.0Gi        10Mi       683Mi       1.5Gi
Swap:         2.4Gi          0B       2.4Gi

Step #02: Now run below command for drop buffer cache.

root@cloud:~# echo 3 > /proc/sys/vm/drop_caches

Its normal process but I want to add this process on crontab using every minutes for drop my buffer cache and linux server have smooth running.

Step #03: Setup crontab for run my command every minute.

root@cloud:~# crontab -e

Then insert below line into cron file. Note: If you open it first time so please select your editor using press 1,2 or 3.

* * * * * echo 3 > /proc/sys/vm/drop_caches

Then Press Ctrl+x then press Y for save and press Enter.

If you face any problem so please see my YouTube video for more details. Please subscribe my channel for latest update.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment