How to clear the cache from memory in Linux:--
Yeah, you are so confused about the cached memory. Your memory is reduced to low and you are worried about that. The only thing in your mind now is to reboot your server. Don't worry about this. Just use this command.
Example:--
[root@www html]# free -m
total used free shared buffers cached
Mem: 2023 1243 779 0 271 619
-/+ buffers/cache: 352 1670
Swap: 4023 0 4023
[root@www html]# sync; echo 3 > /proc/sys/vm/drop_caches
[root@www html]# free -m
total used free shared buffers cached
Mem: 2023 300 1723 0 1 59
-/+ buffers/cache: 239 1783
Swap: 4023 0 4023
Yeah, you are so confused about the cached memory. Your memory is reduced to low and you are worried about that. The only thing in your mind now is to reboot your server. Don't worry about this. Just use this command.
sync; echo 3 > /proc/sys/vm/drop_caches
Hope it helps you.Example:--
[root@www html]# free -m
total used free shared buffers cached
Mem: 2023 1243 779 0 271 619
-/+ buffers/cache: 352 1670
Swap: 4023 0 4023
[root@www html]# sync; echo 3 > /proc/sys/vm/drop_caches
[root@www html]# free -m
total used free shared buffers cached
Mem: 2023 300 1723 0 1 59
-/+ buffers/cache: 239 1783
Swap: 4023 0 4023
No comments:
Post a Comment