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 #576

Closed
zhusichuang opened this issue Jul 18, 2018 · 1 comment
Closed

Memory leak #576

zhusichuang opened this issue Jul 18, 2018 · 1 comment

Comments

@zhusichuang
Copy link

api = core_v1_api.CoreV1Api()
resp = stream(api.connect_get_namespaced_pod_exec, name, 'default',
              command=exec_command,
              stderr=True, stdin=False,
              stdout=True, tty=False)
api = None

The python GC can't collect the variable 'api',and api.api_client.pool.close()won't be called.This will make my process have many threads until it crashes.
image

@roycaihw
Copy link
Member

Dup of #411

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