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

Memory leak from grpcio #731

Open
AlexanderKomarov opened this issue Jul 2, 2024 · 1 comment
Open

Memory leak from grpcio #731

AlexanderKomarov opened this issue Jul 2, 2024 · 1 comment

Comments

@AlexanderKomarov
Copy link

I tested tritonclient:2.43.0 on Ubuntu:22.04 with grpcio:1.62.1 and was confronted with a memory leak. Example for reproduction:

import asyncio
from tritonclient.grpc.aio import InferenceServerClient

async def get_triton_client():
    return InferenceServerClient(url='127.0.0.1:8002', verbose=True)

if __name__ == "__main__":
    while(True):
        print(asyncio.run(get_triton_client()))

The problem is reproduced on the latest versions tritonclient:2.47.0 and grpcio:1.64.1.
I have found a solution to avoid it by using this version grpcio:1.58.0.

As I understand it, tritonclient has a warning to avoid using some versions of grpcio:

# Check grpc version and issue warnings if grpc version is known to have

Could you confirm it?

@holyjackaiforia
Copy link

I was able to reproduce same issue on 22.04.1-Ubuntu using tritonclient==2.48.0. Suggested workaround helped me as well.

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

No branches or pull requests

2 participants