Memory slowly leaks

What is the problem you are having with rclone?

Memory slowly leaks. ~30gb per month

What is your rclone version (output from rclone version)

# rclone version
rclone v1.69.1
- os/version: oracle 9.4 (64 bit)
- os/kernel: 5.15.0-208.159.3.2.el9uek.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none

Which OS you are using and how many bits (e.g. Windows 7, 64 bit)

Oracle Linux Server 9.4, x64

Which cloud storage system are you using? (e.g. Google Drive)

OVH S3

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

/usr/bin/rclone serve restic bucketname: \
  --append-only \
  --config=/etc/rclone/rclone.conf \
  --addr :8080 \
  --user backup \
  --pass password \
  --salt salt \
  --log-file /var/log/rclone.log \
  --use-mmap \
  --transfers 400 \
  --checkers 400 \
  --use-server-modtime \
  --s3-no-check-bucket \
  --s3-disable-checksum \
  --buffer-size 17M \
  --rc

heap pprof

LINK

welcome to the forum,

before we can call this a bug:

  • need to rclone selfupdate and test again.
  • post the output of rclone config redacted

This exact issue has already been fixed in the beta releases (Reference: backend/s3: Fix memory leak by cloning strings #8683 by VVoidV · Pull Request #8684 · rclone/rclone · GitHub). If you try the latest beta, you should no longer see this issue.

1 Like