Skip to content
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

added timeouts to avoid memory leaking #328

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

damoon
Copy link

@damoon damoon commented Oct 6, 2023

In case the fcgi client does not get a response, without the timeout, it will never free the waitgroup in the Update function and never free the mutex in the Collect function. This stops the metrics endpoint from responding. Requests will get queued until the process gets killed with out of memory.
To prevent this, first a timeout was added for the fcgi client and second a timeout and limit was added for the incoming requests.

This issue was also reported in #253.

@frvade
Copy link

frvade commented Nov 28, 2023

@estahn could you please help with the review and merge here maybe 🙏 The related issue is very actual because it leads to repeating OOM killer alerts

@damoon
Copy link
Author

damoon commented Jan 25, 2024

i rebased this to allow for merging.
any chance this could be reviewed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants