rsync error: error allocating core memory buffers

created at 10-26-2021 views: 67

Problem description

When using rsync file transfer, one of the same two servers transfers the same file successfully, and the other reports the error below, which is obviously insufficient memory.

[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]

analyze

Successful case

Successful server

Failed case

Failed case

solution

From the server parameters above, it can be seen that the successful server is swap enabled. If the memory is insufficient, swap will be used, but the failed server is not turned on, and an exception will be thrown directly if the memory is insufficient. Therefore, in this case, there are two solutions plan

  1. Turn on swap
  2. The machine expands the memory
created at:10-26-2021
edited at: 10-26-2021: