一、问题描述
使用rsync文件传输时,相同的两台服务器传输相同的文件一个成功了,一个报出下边的错误,显而易见就是内存不足了
[root@sss085080 ~]# rsync -atvu /alauda/new/* /alauda/data/
sending incremental file list
ERROR: out of memory in flist_expand [sender]
rsync error: error allocating core memory buffers (code 22) at util2.c(106) [sender=3.1.2]
ERROR: out of memory in flist_expand [receiver]
rsync error: error allocating core memory buffers (code 22) at util2.c(106) [receiver=3.1.2]
二、过程分析
成功的服务器
失败的服务器
三、解决方案
从上边的服务器参数可以看出来成功的服务器是开启了swap的,内存不足的话,会使用swap,但是失败的服务器没有开启,内存不足就直接抛出来异常了,所以这种情况下,两种解决方案
1.开启swap
2.机器扩内存