Min menu

Pages

Clear Memory cache Linux, Free Memory cache Linux, Release cached memory Linux,Flush Memory Cache on Linux Server

 Clear Memory cache Linux, Free Memory cache Linux, Release cached memory Linux,Flush Memory Cache on Linux Server


 Clear Memory cache Linux, Free Memory cache Linux, Release cached memory Linux,Flush Memory Cache on Linux Server



Many times administrator of Linux servers having a low memory of Linux servers, as Linux uses too much memory for disk caching then the RAM will be used.
I will explain in this article how you will flush memory cache in Linux servers.

Clear Memory Cache in Linux Server's:

    1. Connect via shell using a program such as Putty
    2. At the shell prompt type crontab -e <enter> as this will allow you to edit cron jobs for the root user.
      • If you are not familiar with vi (linux editor) you press “i” to insert text and once done hit “esc” and type “:wq” to save the file.
    3. Scroll to the bottom of the cron file using the arrows key and enter the following line:
                 0 * * * * /root/clearcache.sh
              4. Create a file in ‘/root’ called ‘clearcache.sh’ with the following content:

                #!/bin/sh
                sync; echo 3 > /proc/sys/vm/drop_caches

            5. Once you have saved this file, the job is complete!

Hope you are now know how to solve this problem clear cache memory in Linux Servers.
If you need any help don't hesitate to contact us.


 


reaction:
https://www.it-weblog.com IT weblog and IT Blog contain articles for computer, network,security ,adsense,Hosting, google,freeware download from IT blog.

Comments