M. Niyazi Alpay
M. Niyazi Alpay
M. Niyazi Alpay

I've been interested in computer systems since a very young age, and I've been programming since 2005. I have knowledge in PHP, MySQL, Python, MongoDB, and Linux.

 

about.me/Cryptograph

  • admin@niyazi.org
Linux RAM Cleanup

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.

Author

Cryptograph

You may also want to read these

There are none comment

Leave a comment

Your email address will not be published. Required fields are marked *