-
Notifications
You must be signed in to change notification settings - Fork 294
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
restarting the Python Interactive kernel increases persistent memory usage #3171
Comments
@rbavery. Thanks for the report on this. We made a change recently to our restart to always start up a second session under the hood to allow for a fast restarts. But it looks like on restart there are python processes building up and not being disposed of. I'll look into this. |
@IanMatthewHuff I can confirm this on my system -- I have a very memory intensive process that I wanted to dump, and on restarting the kernel it didn't dispose of the old process. I needed to manually kill the process.
|
I also confirm exactly the same issue on my system. I noticed the restarts getting faster, which is nice, but then I noticed a build up of processes. Easy to reproduce:
This has quite an impact while using dask for example, as the old cluster is not killed and the resources used by it are just stuck there. |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): XXXExpected behaviour
Wouldn't persistently increase memory use
Actual behaviour
When I restart the kernel in a Python Interactive session, my memory use goes up and stays up. If I restart a bunch of times in a row, it keeps going up. Only way to clear is to close vscode entirely. It goes up by about .08 Gb with each restart, which adds up quickly.
Steps to reproduce:
htop
Logs
There was nothing in the logs
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)see attached, couldn't copy paste from dev tools screen. I've also included a gif showing the problem.
The text was updated successfully, but these errors were encountered: