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

Close client in order to prevent file handle leak #317

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

Conversation

michaelwechner
Copy link

@michaelwechner michaelwechner commented May 10, 2023

When I was running the Java triton client without closing, then after approximately 300 requests I got a "too many open files" exception. Closing the client using client.close() prevents this problem.

In the example https://github.com/michaelwechner/close-triton-client/blob/main/src/java/src/main/java/triton/client/examples/SimpleInferPerf.java I did not close the client, whereas you might want to do this as well to make sure people know that they should close the client

@jbkyang-nvi
Copy link
Contributor

Hi thanks for contributing/fixing the bug! @michaelwechner can you sign the CLA and resolve the conflict?

@michaelwechner
Copy link
Author

Thanks, sure!

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.

2 participants