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

UDP listeners leak. #1

Open
jrwren opened this issue Mar 22, 2017 · 2 comments
Open

UDP listeners leak. #1

jrwren opened this issue Mar 22, 2017 · 2 comments

Comments

@jrwren
Copy link
Contributor

jrwren commented Mar 22, 2017

I noticed this using uwsgi to host our application. Now I do not think it is uwsgi related.

lsof -p <mypid> shows many UDP listeners

...
uwsgi_pyt 8855 myapp 1014u  IPv4           61164162      0t0      UDP *:37440
uwsgi_pyt 8855 myapp 1015u  IPv4           61164204      0t0      UDP *:50661
uwsgi_pyt 8855 myapp 1016u  IPv4           61165045      0t0      UDP *:59752
uwsgi_pyt 8855 myapp 1017u  IPv4           61164224      0t0      UDP *:49717
uwsgi_pyt 8855 myapp 1018u  IPv4           61164375      0t0      UDP *:46519
uwsgi_pyt 8855 myapp 1019u  IPv4           61164441      0t0      UDP *:47617
uwsgi_pyt 8855 myapp 1020u  IPv4           61165421      0t0      UDP *:50587
uwsgi_pyt 8855 myapp 1021u  IPv4           61165334      0t0      UDP *:48802
uwsgi_pyt 8855 myapp 1022u  IPv4           61165425      0t0      UDP *:40760
uwsgi_pyt 8855 myapp 1023u  IPv4           61165372      0t0      UDP *:47147
...

The per request StatsClient object may get garbage collected, but the socket listener resource is never cleaned up. This ultimately causes us to run out of file descriptors.

@pior
Copy link
Member

pior commented Jul 10, 2017

Thanks for reporting!
I will take a look at this very soon!

@pior
Copy link
Member

pior commented Jul 23, 2017

Fix by #2 and released in v0.3.1

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

No branches or pull requests

2 participants