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.
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
Leave a Comment