syncthing: Suspecting a memory leak related to QUIC connections

Does your log mention database corruption?

If your Syncthing log reports panics because of database corruption it is most likely a fault with your system’s storage or memory. Affected log entries will contain lines starting with panic: leveldb. You will need to delete the index database to clear this, by running syncthing -reset-database.

No

Include required information

Please be sure to include at least:

  • which version of Syncthing and what operating system you are using

    • syncthing v1.19.1 "Fermium Flea" (go1.17.6 darwin-arm64) brew@HMBRW-A-001-M1-004.local 2022-02-21 13:57:21 UTC [noupgrade] (via homebrew)
    • macOS Monterey 12.3, MacBook Pro (2021), 32GB RAM
  • browser and version, if applicable: ‘N/A’

After running for a few days syncthing takes up almost 1 GB of RAM, which is unexpected for a machine with just 1 shared folder with: 269 files, 22 folders and ~628 MiB total size. The contents of the folder don’t change that often, and a few days ago the RAM usage was way lower. syncthing hasn’t been interacted with in these last two days. syncthing is running for about a week now.

March 28th March 30th
Screenshot 2022-03-28 at 22 55 43 Screenshot 2022-03-30 at 15 21 06
394 MB RAM 932 MB RAM

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 40 (22 by maintainers)

Most upvoted comments

I don’t think we churn through streams, we have one per connection. I’m on the phone so can’t check the profile to give any more meaningful insights.