memory leak in completion.py
See original GitHub issueEnvironment 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:
- Created 5 years ago
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
settings.json
file"python.jediEnabled": false,
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.