Skip to content

restarting the Python Interactive kernel increases persistent memory usage #3171

@rbavery

Description

@rbavery

Environment data

  • VS Code version: 1.37
  • Extension version (available under the Extensions sidebar): 2019.8.30787
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): conda-forge 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: XXX
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version vscode-python#3977): XXX

Expected 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:

  1. start an interactive session, star restarting the kernel, and monitor the memory with htop

Logs

There was nothing in the logs

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable 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.

Selection_042

Peek 2019-08-14 19-26

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions