let it free
Directory
我们有一台服务器会被java进程跑满缓存,留记此命令行备用。
# run as root
# ref: http://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system
$ free -h && sync && echo 3 > /proc/sys/vm/drop_caches && free -h
let it free
我们有一台服务器会被java进程跑满缓存,留记此命令行备用。
# run as root
# ref: http://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system
$ free -h && sync && echo 3 > /proc/sys/vm/drop_caches && free -h