{"action":"created","issue":{"url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2558","repository_url":"https://api.github.com/repos/VSCodeVim/Vim","labels_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2558/labels{/name}","comments_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2558/comments","events_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2558/events","html_url":"https://github.com/VSCodeVim/Vim/issues/2558","id":316787538,"number":2558,"title":"Closing idle processes","user":{"login":"bm-stschneider","id":30625381,"avatar_url":"https://avatars1.githubusercontent.com/u/30625381?v=4","gravatar_id":"","url":"https://api.github.com/users/bm-stschneider","html_url":"https://github.com/bm-stschneider","followers_url":"https://api.github.com/users/bm-stschneider/followers","following_url":"https://api.github.com/users/bm-stschneider/following{/other_user}","gists_url":"https://api.github.com/users/bm-stschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/bm-stschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm-stschneider/subscriptions","organizations_url":"https://api.github.com/users/bm-stschneider/orgs","repos_url":"https://api.github.com/users/bm-stschneider/repos","events_url":"https://api.github.com/users/bm-stschneider/events{/privacy}","received_events_url":"https://api.github.com/users/bm-stschneider/received_events","type":"User","site_admin":false},"labels":[{"id":749740208,"url":"https://api.github.com/repos/VSCodeVim/Vim/labels/area/neovim","name":"area/neovim","color":"c2e0c6","default":false},{"id":397296006,"url":"https://api.github.com/repos/VSCodeVim/Vim/labels/help%20wanted","name":"help wanted","color":"1d76db","default":true},{"id":285700349,"url":"https://api.github.com/repos/VSCodeVim/Vim/labels/kind/bug","name":"kind/bug","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-23T12:19:26Z","updated_at":"2018-04-27T13:56:41Z","closed_at":null,"author_association":"NONE","body":"Issue Type: <b>Performance Issue</b>\r\n\r\nThere seem to be a lot of zombie processes. Please have a look at the process log. There are a lot of nvim processes.\r\n\r\nExtension version: 0.11.5\r\nVS Code version: Code - Insiders 1.23.0-insider (c1cd4378c5e5dc434ed959e13556d05240a8ca18, 2018-04-20T05:10:42.823Z)\r\nOS version: Darwin x64 17.5.0\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)|\r\n|GPU Status|2d_canvas: enabled<br>checker_imaging: disabled_off<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: enabled<br>rasterization: enabled<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled|\r\n|Load (avg)|2, 2, 2|\r\n|Memory (System)|16.00GB (0.05GB free)|\r\n|Process Argv|/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n</details><details>\r\n<summary>Process Info</summary>\r\n\r\n```\r\nCPU %\tMem MB\t   PID\tProcess\r\n   28\t   115\t 61047\tcode-insiders main\r\n    7\t    66\t 61048\t   gpu-process\r\n    1\t    66\t 62145\t     extensionHost\r\n    0\t     0\t 63546\t       nvim -u NONE -N --embed\r\n    0\t     0\t 63635\t       /Users/stschneider/.vscode-insiders/extensions/ms-vsliveshare.vsliveshare-0.2.399/dotnet_modules/vsls-agent --autoexit --pipe 372caa6bb6a844538c7e46dfcd9e0f83 --service https://insiders.liveshare.vsengsaas.visualstudio.com/\r\n    0\t    16\t 63651\t       electron_node server.js \r\n    0\t     0\t 63673\t       /usr/bin/php /Users/stschneider/.vscode-insiders/extensions/felixfbecker.php-intellisense-2.3.1/vendor/felixfbecker/language-server/bin/php-language-server.php --tcp=127.0.0.1:51821 --memory-limit=4095M\r\n    0\t     0\t 64595\t       nvim -u NONE -N --embed\r\n    0\t    16\t 64597\t       electron_node server.js \r\n    0\t    16\t 64598\t       electron_node server.js \r\n    0\t    16\t 64599\t       electron_node cssServerMain.js \r\n    0\t     0\t 64652\t       nvim -u NONE -N --embed\r\n    0\t    16\t 64659\t       electron_node htmlServerMain.js \r\n    0\t     0\t 64667\t       nvim -u NONE -N --embed\r\n    0\t     0\t 64678\t       nvim -u NONE -N --embed\r\n    0\t     0\t 64963\t       nvim -u NONE -N --embed\r\n    0\t    16\t 64965\t       electron_node tslintServer.js \r\n    0\t    16\t 64966\t       electron_node electronForkStart.js tsserver.js \r\n    0\t    16\t 64972\t         electron_node typingsInstaller.js tsserver.js typesMap.js \r\n    0\t    16\t 64967\t       electron_node eslintServer.js \r\n    0\t     0\t 65027\t       nvim -u NONE -N --embed\r\n    0\t     0\t 65047\t       nvim -u NONE -N --embed\r\n    0\t     0\t 65404\t       nvim -u NONE -N --embed\r\n    0\t     0\t 65427\t       nvim -u NONE -N --embed\r\n    0\t     0\t 65599\t       nvim -u NONE -N --embed\r\n    0\t     0\t 65745\t       nvim -u NONE -N --embed\r\n    0\t     0\t 65870\t       nvim -u NONE -N --embed\r\n    0\t     0\t 66125\t       nvim -u NONE -N --embed\r\n    0\t     0\t 66381\t       nvim -u NONE -N --embed\r\n    0\t     0\t 66811\t       nvim -u NONE -N --embed\r\n    0\t     0\t 67039\t       nvim -u NONE -N --embed\r\n    0\t     0\t 67063\t       nvim -u NONE -N --embed\r\n    0\t     0\t 67854\t       nvim -u NONE -N --embed\r\n    0\t    16\t 67857\t       electron_node server.js \r\n    0\t    16\t 67858\t       electron_node server.js \r\n    0\t     0\t 69691\t       nvim -u NONE -N --embed\r\n    0\t     0\t 70546\t       nvim -u NONE -N --embed\r\n    0\t     0\t 70924\t       nvim -u NONE -N --embed\r\n    0\t     0\t 70947\t       nvim -u NONE -N --embed\r\n    0\t     0\t 70953\t       nvim -u NONE -N --embed\r\n    0\t     0\t 70956\t       nvim -u NONE -N --embed\r\n    0\t     0\t 70975\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71127\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71249\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71259\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71274\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71281\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71288\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71327\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71342\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71525\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71534\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71541\t       nvim -u NONE -N --embed\r\n    0\t     0\t 71559\t       nvim -u NONE -N --embed\r\n    0\t     0\t 74674\t       nvim -u NONE -N --embed\r\n    0\t     0\t 74684\t       nvim -u NONE -N --embed\r\n    0\t     0\t 74788\t       nvim -u NONE -N --embed\r\n    0\t     0\t 74814\t       nvim -u NONE -N --embed\r\n    0\t     0\t 75495\t       nvim -u NONE -N --embed\r\n    0\t     0\t 75508\t       nvim -u NONE -N --embed\r\n    0\t     0\t 75585\t       nvim -u NONE -N --embed\r\n    0\t     0\t 75929\t       nvim -u NONE -N --embed\r\n    0\t     0\t 75947\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76053\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76068\t       nvim -u NONE -N --embed\r\n    0\t    16\t 76070\t       electron_node init.js \r\n    0\t    16\t 76071\t       electron_node server.js \r\n    0\t     0\t 76092\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76113\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76132\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76148\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76162\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76167\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76176\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76183\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76187\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76233\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76307\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76338\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76445\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76450\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76456\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76460\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76505\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76603\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76983\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76990\t       nvim -u NONE -N --embed\r\n    0\t     0\t 76996\t       nvim -u NONE -N --embed\r\n    0\t     0\t 77001\t       nvim -u NONE -N --embed\r\n    0\t     0\t 77065\t       nvim -u NONE -N --embed\r\n    0\t     0\t 77098\t       nvim -u NONE -N --embed\r\n    0\t     0\t 77113\t       nvim -u NONE -N --embed\r\n    0\t     0\t 77132\t       nvim -u NONE -N --embed\r\n    0\t     0\t 77147\t       nvim -u NONE -N --embed\r\n    0\t     0\t 78207\t       nvim -u NONE -N --embed\r\n    0\t     0\t 78235\t       nvim -u NONE -N --embed\r\n    0\t     0\t 78243\t       nvim -u NONE -N --embed\r\n    0\t    16\t 62146\t     watcherService\r\n    0\t    16\t 62147\t     terminal\r\n    0\t     0\t 62148\t       /bin/zsh -l\r\n    0\t     0\t 64709\t         vagrant ssh\r\n    0\t    16\t 63620\t     searchService\r\n    0\t    16\t 68160\t     terminal\r\n    0\t     0\t 68161\t       /bin/zsh -l\r\n    0\t     0\t 70991\t         vagrant ssh\r\n    0\t    16\t 71848\t     terminal\r\n    0\t     0\t 71849\t       /bin/zsh -l\r\n    0\t     0\t 73346\t         vagrant ssh\r\n   12\t    66\t 61050\t   shared-process\r\n   61\t    82\t 78638\t   shared-process\r\n    0\t     0\t 78639\t   /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=\r\n```\r\n\r\n</details>\r\n\r\n<!-- generated by issue reporter -->"},"comment":{"url":"https://api.github.com/repos/VSCodeVim/Vim/issues/comments/384977654","html_url":"https://github.com/VSCodeVim/Vim/issues/2558#issuecomment-384977654","issue_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/2558","id":384977654,"user":{"login":"BinaryKhaos","id":566272,"avatar_url":"https://avatars3.githubusercontent.com/u/566272?v=4","gravatar_id":"","url":"https://api.github.com/users/BinaryKhaos","html_url":"https://github.com/BinaryKhaos","followers_url":"https://api.github.com/users/BinaryKhaos/followers","following_url":"https://api.github.com/users/BinaryKhaos/following{/other_user}","gists_url":"https://api.github.com/users/BinaryKhaos/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryKhaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryKhaos/subscriptions","organizations_url":"https://api.github.com/users/BinaryKhaos/orgs","repos_url":"https://api.github.com/users/BinaryKhaos/repos","events_url":"https://api.github.com/users/BinaryKhaos/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryKhaos/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T13:56:41Z","updated_at":"2018-04-27T13:56:41Z","author_association":"NONE","body":"VSC only disposes resources when an extension is shutdown, thus in this example, the ``ModeHandler`` we instantiate every time a new ``TextEditor`` is created, will not get disposed. Since this also \"owns\" ``VimState`` (which in turn has the ``neovim`` object), we get piled up neovim processes.\r\n\r\nI have opened a pull requested with a possible fix."}}
{"actor":{"display_login":"BinaryKhaos"}}