Cache is used to keep data to use frequently by operating system
, But sometimes memory is getting low linux provide some memory Command line to monitor Memory status Check the below link :-
1- Linux Check Memory Usage Here.
2- 18 Command Line Tools to Monitor Linux Performance here.
There are options available to flush cache of linux memeory :-
Flush everything ( Pagecache, dentries and inodes ) :-
sync; echo 3 > /proc/sys/vm/drop_caches.
Flash dentries and inodes :-
sync; echo 2 > /proc/sys/vm/drop_caches
Flash PageCache only
sync; echo 1 > /proc/sys/vm/drop_caches
All the command should be Run As root.
Schudle the above command as job using crontab , choose from the above command what you need :-
0 * * * * /root/memory.sh
Memorysh –> should be contain one the above script run as root.
Thank you
Osama mustafa
Like this:
Like Loading...
Related
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa