Ubuntu Clear Ram Cache

Posted on  by admin
Clear cache ubuntu terminal

By default the Linux OS has a very efficient memory management process that should be freeing any cached memory on the machine that it is being run on. However when it comes to Cached memory the Linux OS may at times decide that the Cached memory is being used and is needed which can lead to memory related issues and ultimately take your server of any potentially free memory. To overcome this you can force the Linux OS to free up and stored Cached memory.
If you want to clear cached memory on ubuntu run the following command from your terminal

If you have to clear buffer cache regularly, use the cronjob do it. Schedule the following in system crontab to automatically flush cache memory on a regular interval. Open a terminal and execute ‘crontab -e’ command to edit crontab. A Script to Clear Cached RAM on Linux. GitHub Gist: instantly share code, notes, and snippets. To clear ram cache, you may call the script whenever required. Setting a cron to clear RAM cache everyday 2 hours. [email protected] # crontab -e Append the following line, save and exit to execute it at 2 hours daily. 0 2. /path/to/script.sh To clear automatically the RAM cache on production server. First option to clear memory caches on Linux. Command to free pagecache, dentries and inodes in cache memory in Linux. Sync; echo 3 /proc/sys/vm/dropcaches Second option to clear memory cache.

sync; sudo echo 3 > /proc/sys/vm/drop_caches

If you want to run this command every one hour you can use crontab to run this

Ubuntu clear ram cache mac

Thanks to john for this tip

Sponsored Link

Ubuntu Clear Apt Cache


Related posts


Ubuntu Clear Ram Cache Chrome


How To Clear Ram Memory

  • Zik – Audio player based on gstreamer (3)
  • Zero Install Injector – Install software easily and without root privileges (17)
  • Zenmap – Cross platform Nmap Security Scanner GUI (0)
  • Zattoo – Watch Online TV for free (18)
  • Youker assistant – Integrated tool to aid in routine system maintenance tasks (1)
  • YouAmp – Yet another music player for Linux (10)
  • ÜberStudent – Ubuntu version for Students and Researchers (18)