Title: High memory usage · Issue #832 · microsoft/python-language-server · GitHub
Open Graph Title: High memory usage · Issue #832 · microsoft/python-language-server
X Title: High memory usage · Issue #832 · microsoft/python-language-server
Description: @suiahaw commented on Tue Mar 26 2019 Issue Type: Bug Some questions about the python plugin encountered when building python library indexes I strongly hope that the python plugin does not read the information into memory in real time w...
Open Graph Description: @suiahaw commented on Tue Mar 26 2019 Issue Type: Bug Some questions about the python plugin encountered when building python library indexes I strongly hope that the python plugin does not read th...
X Description: @suiahaw commented on Tue Mar 26 2019 Issue Type: Bug Some questions about the python plugin encountered when building python library indexes I strongly hope that the python plugin does not read th...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/832
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"High memory usage","articleBody":"@suiahaw commented on [Tue Mar 26 2019](https://github.com/Microsoft/vscode-python/issues/4952)\n\nIssue Type: \u003cb>Bug\u003c/b>\r\n\r\n### Some questions about the python plugin encountered when building python library indexes\r\nI strongly hope that **the python plugin does not `read the information into memory in real time `when creating the python library index**, **but `instead saves the index file`** in order to speed up the time and reduce memory overhead. \r\n\r\nThe python library is really too big. Sometimes I have to wait a few minutes for writing a small amount of code.\r\n\r\nExtension version: 2019.3.6139\r\nVS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T23:43:35.476Z)\r\nOS version: Windows_NT x64 10.0.17763\r\n\r\n\u003cdetails>\r\n\u003csummary>System Info\u003c/summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)|\r\n|GPU Status|2d_canvas: enabled\u003cbr>checker_imaging: disabled_off\u003cbr>flash_3d: enabled\u003cbr>flash_stage3d: enabled\u003cbr>flash_stage3d_baseline: enabled\u003cbr>gpu_compositing: enabled\u003cbr>multiple_raster_threads: enabled_on\u003cbr>native_gpu_memory_buffers: disabled_software\u003cbr>rasterization: enabled\u003cbr>surface_synchronization: enabled_on\u003cbr>video_decode: enabled\u003cbr>webgl: enabled\u003cbr>webgl2: enabled|\r\n|Memory (System)|15.86GB (8.60GB free)|\r\n|Process Argv||\r\n|Screen Reader|no|\r\n|VM|46%|\r\n\r\n\u003c/details>\r\n\u003c!-- generated by issue reporter -->\n\n---\n\n@algo99 commented on [Wed Mar 27 2019](https://github.com/Microsoft/vscode-python/issues/4952#issuecomment-477034361)\n\nI can confirm, on Windows 10.\r\n\r\nAfter update (yesterday) of Python Language Server and/or vscode_python extension VSCode not more usable. See the disk I/O and memory consumption:\r\n\r\n\r\n\r\nThe extension proceeds after VSCode start:\r\n> Analyzing in background, 6879 items left ...\r\n\r\nand this process does not stop.\r\nI tried several times to restart VSCode, but it does not help.\r\n\r\n\n\n---\n\n@algo99 commented on [Wed Mar 27 2019](https://github.com/Microsoft/vscode-python/issues/4952#issuecomment-477038799)\n\nJust noted in Python output pane:\r\n```log\r\n...\r\n[Info - 09:17:10] Microsoft Python Language Server version 0.2.31.0\r\n[Info - 09:17:10] Initializing for c:\\3rd\\WinPython\\python-3.7.2.amd64\\python.exe\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 1497, in \u003cmodule>\r\n state.collect_second_level_members()\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 944, in collect_second_level_members\r\n self._collect_members(mi.value, mi.members, substitutes, mi)\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 958, in _collect_members\r\n raise RuntimeError(\"failed to import module\")\r\nRuntimeError: failed to import module\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 1497, in \u003cmodule>\r\n state.collect_second_level_members()\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 944, in collect_second_level_members\r\n self._collect_members(mi.value, mi.members, substitutes, mi)\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 958, in _collect_members\r\n raise RuntimeError(\"failed to import module\")\r\nRuntimeError: failed to import module\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 1489, in \u003cmodule>\r\n state.initial_import(sys.argv[2])\r\n File \"C:\\Users\\zkr\\.vscode\\extensions\\ms-python.python-2019.3.6139\\languageServer.0.2.31\\scrape_module.py\", line 872, in initial_import\r\n mod = __import__(self.module_name)\r\n File \"c:\\3rd\\winpython\\python-3.7.2.amd64\\lib\\site-packages\\cvxopt\\__init__.py\", line 50, in \u003cmodule>\r\n import cvxopt.base\r\nImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.\r\n```\r\n\n\n---\n\n@dilzeem commented on [Wed Mar 27 2019](https://github.com/Microsoft/vscode-python/issues/4952#issuecomment-477094651)\n\nI am also getting the same issue as well on Windows 10.\r\n\r\nIt only happens once I start debugging some code. \r\nIt renders VScode unusable.\n\n---\n\n@suiahaw commented on [Wed Mar 27 2019](https://github.com/Microsoft/vscode-python/issues/4952#issuecomment-477104176)\n\nIt only happens when the python plugin loads the python library, which requires a lot of CPU and memory. And these information that is loaded into memory is estimated to be used for IntelliCode.\n\n---\n\n@ray306 commented on [Wed Mar 27 2019](https://github.com/Microsoft/vscode-python/issues/4952#issuecomment-477128112)\n\nThe same problem happens today. I think it's a bug of new Python plugin just released yesterday (March 26).\n\n---\n\n@dilzeem commented on [Wed Mar 27 2019](https://github.com/Microsoft/vscode-python/issues/4952#issuecomment-477183669)\n\nPossibly a duplicate of of this in the python language server:\r\n\r\nhttps://github.com/Microsoft/python-language-server/issues/450\n\n---\n\n@suiahaw commented on [Wed Mar 27 2019](https://github.com/Microsoft/vscode-python/issues/4952#issuecomment-477190477)\n\n> Possibly a duplicate of of this in the python language server:\r\n> \r\n> [Microsoft/python-language-server#450](https://github.com/Microsoft/python-language-server/issues/450)\r\n\r\nI also think that the issues area of the python plugin has a large part of similar content related to such a bug. It seems that this bug is very disturbing programming and needs to be solved urgently. ;-)\n\n","author":{"url":"https://github.com/gramster","@type":"Person","name":"gramster"},"datePublished":"2019-03-27T16:07:26Z","url":"https://github.com/microsoft/python-language-server/issues/832"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:939b3dd7-8851-7f65-c69f-c2a4a0b1eb44 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90D4:2A1B81:33DA7B:43F4F4:6AFE4E63 |
| html-safe-nonce | 32d3d5e724108aff2de8954e427fc103fb205234de562b7e5cb6164aa1201184 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEQ0OjJBMUI4MTozM0RBN0I6NDNGNEY0OjZBRkU0RTYzIiwidmlzaXRvcl9pZCI6IjkxMzk1NzEzNTk3Nzk1NDA1NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7cd9c8b817db67183a9847d74c14284f9888621adf98d8a2f217940f7ac1dcff |
| hovercard-subject-tag | issue:426050445 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Microsoft/python-language-server/832/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2862fb1a579eed6bd4c16611da70e95716df8d95051061b4732a8608c88d7752/microsoft/python-language-server/issues/832 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2862fb1a579eed6bd4c16611da70e95716df8d95051061b4732a8608c88d7752/microsoft/python-language-server/issues/832 |
| og:image:alt | @suiahaw commented on Tue Mar 26 2019 Issue Type: Bug Some questions about the python plugin encountered when building python library indexes I strongly hope that the python plugin does not read th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gramster |
| hostname | github.com |
| expected-hostname | github.com |
| None | 894d3c8b932306ed8425e8dcbe0c1089667e487c5fe7b8a05d17e7b685207429 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44570ad53e12be09be8000af683c29166c4007cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width