That way we don’t start panicking when the server says 99% of memory is being used, but in reality that memory is being used by the Linux page cache. sync echo 1 > /proc/sys/vm/dropcaches clear dentries and inodes. When kbmemused is over 917504 KB or 896 MB, and kbcached is under 131072 KB or 128MB this command will output the memory usage stats from sar.ĭoing it this way we can ensure that we’re only looking at times when our actual free memory on the server has dipped below 128MB. how to clear memory in ubuntu 18.04 Cyberwombat clear pagecache only. The command below goes through your sar logs and shows anytime that your server’s memory is spiking. How to set a cron job to clear cache memory in Linux Access the desired server through shell as a root or sudo user. ![]() ![]() The kbcached column shows how much memory was cached. The %memused column shows how much memory was used as a percentage of total memory available. The kbmemused column shows how much memory was used. ![]() The kbmemfree column shows how much memory was free.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |