Hey Bill,
Linux systems create and cache datalots in disk and RAM at intervals depending on the usage patterns. This can create an impression of excessive resource usage on server resources after a certain amount of time and time. If we do not illustrate this with examples, we can compare it to providing browser history.
As you may know, crawlers keep a part of the data in their minds that you will visit the same site again and again with Cache's past visits. When you want to call the same site again, it tries to react more quickly. The Centos cache works on the same logic.
Now let's see how we can clean up these past caches.
If your server is a VPS or a dedicated server, you can use Putty or a different client program through SSH. In order to clear the cache memory of the page, we run the commands as below.
Code:
# sync; echo 3 > /proc/sys/vm/drop_caches
# sync; echo 2 > /proc/sys/vm/drop_caches
# sync; echo 1 > /proc/sys/vm/drop_caches
We will clean up the Centos cache with our commands. It will be useful for automatic caching of server performance and cache data at fixed intervals without the need to specify a cron.
The command I share below will create a scheduled task for automatic cleaning of cache data via SSH.
Code:
# crontab -l
0 * * * * sync; echo 3 > /proc/sys/vm/drop_caches
Once you've completed the steps, you'll be able to provide the correctness.
You can run
#free -m command and observe the output values.
Hope it helps~