Solve the problem of excessive buff/cache memory usage

1. After the Linux server has been used for a long time, the buff/cache memory will be excessively occupied.

As shown in the figure:
Insert picture description here

2. You can use the following command to clear the cache memory

echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches

3. Check again after clearing, the effect is remarkable

Insert picture description here

Guess you like

Origin blog.csdn.net/m0_46674735/article/details/113527217