question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

memory leak in completion.py

See original GitHub issue

Environment data

  • VS Code version: 1.23.1
  • Extension version (available under the Extensions sidebar): 2018.4.0
  • OS and version: GNU/Linux, Fedora 26
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A

Actual behavior

completion.py uses all available RAM

Expected behavior

Not using all available RAM.

Steps to reproduce:

No reproduction steps yet.

I’ve locked my computer with VSCode open with a Python project and then after unlocking I’ve noticed 100% RAM usage, quickly checked top and found the reason was completion.py script which must have been started by VSCode.

Logs

$ top -c | grep python3
24318 kblazew+  20   0 8945544 6,209g     24 D  17,5 80,7  23:22.44 /usr/bin/python3 completion.py

Script used 80.7% of available RAM which is ~6.5GiB on my machine.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Jun 26, 2018

Hi everyone, please could you try using our experimental language server. It is still in a state of development, hence the reason to opt into it. To use the new language server please:

  • Open you settings.json file
  • Add the setting "python.jediEnabled": false,
  • You will be prompted to restart VS Code, please do so Let me know how this goes. Once again, this is a new language server we’re working on, and expect it to be better than the current language server built on top of jedi. However it is still in development. So, if you come across any bugs, please do report them as separate issues.
0reactions
DonJayamannecommented, Jun 27, 2018

The long term solution is to make use of the new language server, i.e. move away from Jedi. And as one of you have confirmed this works with the new language server, I’ll be closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory Leak in Python Applications - We are community
Memory Leak : The memory leak is a problem, when memory creates for any variable, references, objects and forgot to delete it, later...
Read more >
Fixing Python Memory Leaks - CloudQuant
We found our hard to diagnose Python memory leak problem in numpy and numba using C/C++. It turned out that the numpy array...
Read more >
Memory Leak in Python requests - GeeksforGeeks
When a programmer forgets to clear a memory allocated in heap memory, the memory leak occurs. It's a type of resource leak or...
Read more >
Memory Leak in Python Applications - DEV Community ‍ ‍
The memory leak is a problem, when memory creates for any variable, references, objects and forgot to delete it, later they create an...
Read more >
Chasing memory spikes and leaks in Python - Metabob
Epilogue: · If your program is terminating due to memory error at wildly different places on AWS, look for a spike rather than...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found