Results 1 to 2 of 2
  1. #1

    Default 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. #2
    Join Date
    May 2010
    Posts
    279

    Default

    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/memory.sh file in your favorite editor and add the following in the file.

    echo 1 > /proc/sys/vm/drop_caches
    [email protected] [~]# cat /root/memory.sh
    echo 1 > /proc/sys/vm/drop_caches
    Set the 755 permission to /root/memory.sh file and add the Cron under the server main crontab file.
    */30 * * * * sh /root/memory.sh;
    As per above Cron the /root/memory.sh 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •