-
-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak -> OOM when serving aptly api #1323
Comments
I have a suspicion, might be that the tasks are never cleared. do you see tasks with curl /api/tasks ? |
indeed, aptly was not deleting internal tasks in sync mode.... see fix in #1324 |
releasing fix, ... |
please test version |
Tried with Note: publishing is done through the api using the status of the aptly server is generated with the following command on the server running aptly-api: echo -e " - date: $(date --iso=seconds)\n - aptly publishes: $(aptly publish list -raw | wc -l)\n - aptly snapshots: $(aptly snapshot list -raw | wc -l)\n - *.ldb files: $(ls -l /var/lib/aptly/db/*.ldb | wc -l)\n - proc/fd files: $(ls /proc/$(pidof aptly)/fd/ 2>/dev/null | wc -l)\n - mem used: $(free -h | grep Mem: | awk '{print $3}')"
Previously I was running
|
Hi @NeroBurner, thanks for the testing and stats ! the numbers look OK, do they ? golang has a garbage collector, unused allocated memory will be freed periodically, that might explain the variations... |
Looking good to me. After a few weeks I'm only at ~600MiB usage. |
Detailed Description
The OOM killer killed aptly on our server last night, with this line:
By my reading, this means the RSS of aptly was 21.2GiB! It had been running since July 23, so not terribly long.
I've attached the full logs from the aptly run. I'll check back in a few days to see what the memory usage is to see if it's ongoing.
Let me know if there is any extra info I can provide, thanks!
aptly_oom_log.txt
Your Environment
Ubuntu 22.04, x86_64
aptly version: '1.5.0+162+g8029305d'
The text was updated successfully, but these errors were encountered: