1、先看看内存使用状况
[root@node1 ~]# free -m

2、把内存里的数据暂时写到硬盘里
[root@AY13031310195285414f ~]# sync

3、修改 /proc/sys/vm/drop_caches文件
[root@AY13031310195285414f ~]# echo 3 > /proc/sys/vm/drop_caches
[root@AY13031310195285414f ~]# cat /proc/sys/vm/drop_caches
再看内存
[root@node1 ~]# free -m