-
Notifications
You must be signed in to change notification settings - Fork 23
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
Running multiple testcases should not leak file descriptors #98
Comments
Weird, neither my system nor the Github builders have that issue. I can even reduce it to 512. Can you give some more info about your system, branch, compiler, etc, etc? |
Happy to help. I can provide shell access if that makes it easier for you (I don't mind doing the legwork though). The details:
Does it not leak files for you, or does it not crash for you? The grep for epoll is for no special reason except it shows the leakage nicely (note my limit is 1024):
|
Capturing the state using
|
This mostly only impacts the tests, because the MainApp gets reinstantiated all the time. When the environment limits the amount of open file descriptors in such a way that even FlashMQ's call to setrlimit fails, tests would reach the maximum. #98
Thanks, that error from Anyway, It was kind of an accident I never ran into it. The |
Observation
Running all testcases in 1 go crashes on my system:
It always crashes on the same testcase.
The testcase itself runs fine:
If I raise my open file limit using
ulimit -Sn 4096
it goes much further but still can't make it to the end.The text was updated successfully, but these errors were encountered: