attic icon indicating copy to clipboard operation
attic copied to clipboard

`attic watch-store` has memory leak

Open 6543 opened this issue 1 year ago • 3 comments

Image

attic-client 0.1.0
Linux 6.12.19 #1-NixOS SMP PREEMPT_DYNAMIC Thu Mar 13 12:02:20 UTC 2025 x86_64 GNU/Linux

6543 avatar Apr 02 '25 00:04 6543

the exact attic used is: /nix/store/03fc6x7v8majizc975imwr5h5gdjsifs-attic-0-unstable-2024-10-06/bin/attic

I can provide the core dump (It's 3Gb compressed)

6543 avatar Apr 02 '25 00:04 6543

Was just wondering why my attic watch service was slowing growing in size, seems to be affecting me too, the leak seems to be directly related to the pushing process as the process running on my desktop which runs a lot of builds and pushes a lot is affected heavily and I've seen it jump as high as 8gb before I've restarted it but my servers haven't grown nearly as much and i rarely and they seem to be in the range of 3-50mb

The version I'm using is /nix/store/jmsv32zlybyqg03zzfamlsbdd8rddcqq-attic-0-unstable-2025-02-02/bin/attic from rev ff8a897d1f4408ebbf4d45fa9049c06b3e1e3f4e

Whats the expected memory footprint for the process?

DaRacci avatar May 15 '25 00:05 DaRacci

We are running a building machine with quite a lot of traffic, and eventually ended up with a leak of ~100G.

We were looking into gathering further logs but it seems as per this issue https://github.com/zhaofengli/attic/issues/58 that no debug flags will trigger further logs, has a verbose option been thought about ?

I will try to come back with a memory dump soon to provide further details about the observed issue.

TanguyHerbron avatar Oct 30 '25 11:10 TanguyHerbron