No announcement yet.

How to flush the RAM memory cache on Linux server?

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to flush the RAM memory cache on Linux server?

    I want to flush the RAM memory cache on my Linux server to improve server its performance. Can someone assist me here how to do this?

  • #2
    The RAM memory is a vital part of the server and many time RAM memory blocked in the cache therefore server loads slowly and not responds to the new processes, because of RAM memory is not available for the new processes, to resolve the RAM memory cache issue, you can set the Cron Jobs to reset the RAM memory cache after every 30 minutes by using the following command.

    Login in to the shell as a root user.

    Create the new /root/ file in your favorite editor and add the following in the file.

    echo 1 > /proc/sys/vm/drop_caches
    [email protected] [~]# cat /root/
    echo 1 > /proc/sys/vm/drop_caches
    Set the 755 permission to /root/ file and add the Cron under the server main crontab file.
    */30 * * * * sh /root/;
    As per above Cron the /root/ will run one in every 30 minutes and clear the RAM memory cache.
    Jeremy Calvey Earn up to $350 with bodHOST Web Hosting Affiliate Program
    Contact us: Live Chat | Email: sales[@]bodHOST[dot]com
    Ph.: 866-662-0909, +1.302.294.5628