How to clear cached memory on cPanel

Clear cached memory on cpanel server

By default, the Linux OS is a very valuable memory administration method that should be releasing any cached memory on the organization that it is being run on. However, when it comes to Cached memory the Linux OS may at times choose that the Cached memory is being managed and is required which can lead to memory-related problems.

You can apply the following rule to clean your cache concept

root@server [~]# echo 1 > /proc/sys/vm/drop_caches

To remove cached memory each hour the cron job will run this facility and clear any memory cache that has built up.
create a file to clear cache memory

vi /root/

and paste the following commands.

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

save and add this script in your cron job.

0 * * * * /root/

Thats all.. This script will remove cached memory automatically after every hou

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Stats and Monitoring Process tool

Mysqlmymonlite Stats and Monitoring process free tool, Bash shell script tool used to gather...

cPanel Game Server Installation

cPGS is a software module that allows you to set up and run a game server. You are even able to...

Attracta SEO Tools Installation

Attracta SEO tool will verify that your website has not been flagged by Google as containing...

Server load alerts shell script

Simple Server load alerts shell script to monitor your server load average, Free Memory and Swap...

Powered by WHMCompleteSolution