In Linux operating systems, RAM usage tends to increase over time when the system is left running. This situation particularly affects the performance of websites on servers. We can mitigate this by clearing the RAM cache. By running the following commands, you can reclaim up to 70% of RAM usage.
sync; echo 3 > /proc/sys/vm/drop_caches sync; echo 2 > /proc/sys/vm/drop_caches sync; echo 1 > /proc/sys/vm/drop_caches
Executing these commands does not pose any problem; however, if there are active sessions on services like memcache on the server, they will all be closed.
Muhammed Niyazi ALPAY - Cryptograph
Senior Software Developer & Senior Linux System Administrator
Meraklı
PHP MySQL MongoDB Python Linux Cyber Security
There are none comment