-
Notifications
You must be signed in to change notification settings - Fork 93
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
Leaking file descriptors? #494
Comments
Out of curiosity, which fedmsg version do you run? |
|
That seems old, I though infra repos always backported the current version |
@msimacek not if the normal stable repos (like, in this case f26) contain newer. |
Is this still present in the latest release? |
Yes, it is still reproducible. In 2 hours it leaked several hundreds file descriptors.
|
Interestingly, |
Ahh, I realized #484 never made it into a release. It rewrites the CRL and CA loading. I'm guessing that will fix this problem (assuming what's leaking is the CRL/CA, which wouldn't surprise me). If it's easy for you to try the tip of the current development branch, that'd be great to confirm.
I'm guessing if you counted up the "endpoints" in the various configurations it'd come out to 230 or something. zmq will open a TCP connection to each of those. I'm surprised there's such a big difference between Python 2 and 3, though. Off the top of my head I can't think of what would account for that. |
We have upgraded our production to Fedora 27, Python 3 and |
Can you provide a minimal reproducer + config? Figuring out when this started would be helpful, as well. Does it occur using m2crypto for validation, or only for cryptography+pyopenssl? Only in Python 3? |
Config: https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/fedmsg/base/templates Reproducer:
Example output:
|
I left the reproducer script running and after some time it died with:
|
I was hoping for a config file rather than a set of ansible templates. I cannot reproduce this with the reproducer script and a minimal configuration that points to 'tcp://fedoraproject.org:9940', so having the exact configuration you're running with in a single file would be helpful. |
In koschei we have a simple
tail_messages
loop. Recently it started dying (approximately every hour) with:Looking at
/proc/PID/fd
when it's still running, it contains mostly the following repeated many times:CC @mizdebsk
The text was updated successfully, but these errors were encountered: