mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #392] Potential Memory Leak #205
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pauldeng on GitHub (May 31, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/392
Problem
Thank you for the great project.
I see that memory usage growing gradually and never released until I restart the application.
This could be memory leak but need your help to guide me on how to debug.
My application is data collection from thousands of embedded devices.
Embedded devices HTTP Post file to DUFS.
Memory usage increase rate is like 0.5MB per minute.
Last time, it reached 2.1GB of usage out of 4GB total and DUFS CPU usage skyrocket. Restart DUFS fix the problem temporarily.
Configuration
Log
Not sure if this is the root cause of the problem:
Environment:
@sigoden commented on GitHub (May 31, 2024):
@pauldeng
The OS can take a while to release memory or may not release it until it needs too. There is nothing specific here and its likely just what your os is setup to do. Its quite common to see memory increases like this. You can try to use valgrind to see if there are actually any leaks.
The following test can prove whether dufs has a memory leak:
If dufs has a memory leak, the docker container will be killed due to OOM. But from my own actual test, this is not the case.
So dufs does not have a memory leak.