2 Answers
- Newest
- Most votes
- Most comments
0
Best way is to schedule cronjob to clean up the cache. Below cronjob commands are to clear the server cache every hour. Please change it according to your needs.
1 * * * * sync; echo 3 > /proc/sys/vm/drop_caches 1 * * * * sync; echo 2 > /proc/sys/vm/drop_caches 1 * * * * sync; echo 1 > /proc/sys/vm/drop_caches
answered 2 years ago
0
You've mentioned a server cache in EC2 but added "Amazon File Cache" as a tag - are you actually using this? https://aws.amazon.com/filecache/faqs/.
If it's a server cache on EC2, wht are you caching and what are you using to perform the caching?
Relevant content
- asked 2 years ago
- asked 2 months ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 months ago
Doesn't this just drop disk cache out of memory? @Post is having trouble with free disk not free memory. Seems to me that "server cache" in the question isn't talking about the Linux disk cache. Cheers.