microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
910 stars 130 forks source link

Memory Leak on Linux #1549

Open ljhwdev opened 4 years ago

ljhwdev commented 4 years ago

I posted this issue on vscode-python and a moderator asked me to post it here instead.

I have been using PLS with VSCode on Linux absolutely fine for months. A few days ago there was an automatic update, I can't remember which day. Two days my machine ground to a halt because PLS has reached 9.8GB ram usage. I switched on Jedi and have had no memory problems since.

I don't contribute to this project so this is just to help really. I suggest you have a memory leak in your last Linux release.

jakebailey commented 4 years ago

Please use one of the templates when reporting an issue. We'd be interested in knowing which version you're referring to and what's getting logged; we've seen no change in the typical memory usage for some time.

Perhaps an instance of #1298.

ljhwdev commented 4 years ago

OK. I'll switch it back on tomorrow when I start coding. If the ram usage creeps up again, I'll list all the versions I'm using.


From: Jake Bailey notifications@github.com Sent: Monday, September 16, 2019 8:02:34 PM To: microsoft/python-language-server python-language-server@noreply.github.com Cc: ljhwdev luke_weston@hotmail.com; Author author@noreply.github.com Subject: Re: [microsoft/python-language-server] Memory Leak on Linux (#1549)

Please use one of the templates when reporting an issue. We'd be interested in knowing which version you're referring to and what's getting logged; we've seen no change in the typical memory usage for some time.

Perhaps an instance of #1298https://github.com/microsoft/python-language-server/issues/1298.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/python-language-server/issues/1549?email_source=notifications&email_token=AHFNXPT3PNLV423PZXL4TT3QJ7J4VA5CNFSM4IXGBAPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62FTJI#issuecomment-531913125, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHFNXPTR7ZFQM3CL7MW72V3QJ7J4VANCNFSM4IXGBAPA.

jakebailey commented 4 years ago

To be clear, I mean the version of the language server (not necessarily your packages).

ljhwdev commented 4 years ago

ms-python.python-2019.9.34911/languageServer.0.3.76

jakebailey commented 4 years ago

Thank you. Please follow the troubleshooting docs to enable trace logging and show us the output.

https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue

ljhwdev commented 4 years ago

I was working for about 9 hours today in VSCode. I switched PLS on and off a few times. Mainly just to see the difference with Jedi, which I had never tried before this RAM problem. I know this is what you probably don't want to hear but I actually prefer the Jedi experience. I hope you find the memory leak. Good luck guys.