4 MINDS

4MINDS Gestão de Conhecimento

AWS EC2 reduce cache memory usage




Check memory usage

free -m

Script

#!/bin/bash

sync; echo 3 > /proc/sys/vm/drop_caches

Add on crontab

* */1 * * * /opt/appserver/script-server-limpar-memoria-buff-cache.sh

Run script

opt/appserver/script-server-limpar-memoria-buff-cache.sh


Check memory again