Skip to content

Fixed memory leak in the logging endpoint #8530

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

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

qstokkink
Copy link
Contributor

Fixes #8485 (once and for all, for the third time 🙂)

This PR:

  • Fixes a memory leak in the logging endpoint due to the MemoryHandler flushing mechanism.

I set the capacity to 400 records. This equates to roughly one minute of logging output before records start rotating out.

@qstokkink qstokkink changed the title WIP: Fixed memory leak in the logging endpoint READY: Fixed memory leak in the logging endpoint Mar 31, 2025
@qstokkink qstokkink marked this pull request as ready for review March 31, 2025 09:40
@qstokkink qstokkink changed the title READY: Fixed memory leak in the logging endpoint Fixed memory leak in the logging endpoint Mar 31, 2025
@qstokkink qstokkink merged commit 839779e into Tribler:main Mar 31, 2025
7 checks passed
@qstokkink qstokkink deleted the fix_logep_memleak branch March 31, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

8.1.0 prerelease used 59gb of memory
2 participants