Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsserver.js using 100% of CPU #71954

Closed
LeeCampbellr opened this issue Apr 8, 2019 · 2 comments
Closed

tsserver.js using 100% of CPU #71954

LeeCampbellr opened this issue Apr 8, 2019 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@LeeCampbellr
Copy link

Issue Type: Performance Issue

Whenever I open a Gatsby.js project and run gatsby develop the electron_node tsserver.js process takes 100% of the CPU. I read some github issues and deleted my typescript 3.4 cache folder and that resolved it for about an hour then it starts again. It immediately turns on my fans and drains my battery

VS Code version: Code 1.33.0 (0dd516d, 2019-04-04T15:11:32.076Z)
OS version: Darwin x64 18.5.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2900)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 32.00GB (3.69GB free)
Process Argv
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
   16	    98	  2479	code main
    3	   164	  2481	   gpu-process
    0	    66	  2519	   shared-process
    0	   426	 18698	   window (contact.js — Development)
    0	     0	 18699	     /bin/bash -l
    0	   131	 18702	     extensionHost
    0	   295	 18704	       electron_node tsserver.js 
    0	    66	 18722	         electron_node typingsInstaller.js typesMap.js 
    0	    66	 18707	       electron_node eslintServer.js 
    0	    33	 18703	     watcherService
    0	    33	 23995	     searchService
    0	   295	 23622	   window (gulpfile.js — infinitymkt)
    0	     0	 23623	     /bin/bash -l
    0	    98	 23626	     extensionHost
    0	    66	 23631	       /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain --node-ipc --clientProcessId=23626
    0	    33	 23847	       electron_node eslintServer.js 
   99	   197	 23849	       electron_node tsserver.js 
    0	    66	 23852	         electron_node typingsInstaller.js typesMap.js 
    0	    66	 23871	       /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/jsonServerMain --node-ipc --clientProcessId=23626
    0	    33	 23627	     watcherService
    0	    33	 23638	     searchService
    0	    66	 24003	   window (Issue Reporter)
    0	     0	 24004	   /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
Workspace Info
|  Window (gulpfile.js — infinitymkt)
|  Window (contact.js — Development)
|    Folder (Development): 441 files
|      File types: json(182) js(101) jpg(95) webp(18) png(16) md(8) woff(3)
|                  eot(3) css(2) ttf(2)
|      Conf files: package.json(1)
|    Folder (infinitymkt): 1077 files
|      File types: jpg(781) png(148) php(38) DS_Store(30) js(25) scss(22)
|                  svg(14) woff(4) woff2(4) json(4)
|      Conf files: package.json(2) gulp.js(1) webpack.config.js(1);
Extensions (22)
Extension Author (truncated) Version
rainbow-brackets 2gu 0.0.6
project-manager ale 10.5.1
htmltagwrap bra 0.0.7
npm-intellisense chr 1.3.0
vscode-markdownlint Dav 0.26.0
vscode-eslint dba 1.8.2
vscode-npm-script eg2 0.3.5
prettier-vscode esb 1.8.1
auto-close-tag for 0.5.6
auto-rename-tag for 0.0.15
vscode-yarn gam 1.6.0
diff-tool jin 0.0.1
vscode-styled-sort joh 0.0.7
vscode-styled-components jpo 0.0.26
auto-comment-blocks kev 1.0.1
vscode-titlebar-less-macos leh 1.9.1
vscode-language-babel mgm 0.0.22
dotenv mik 1.0.1
debugger-for-chrome msj 4.11.3
convert-css-in-js pau 1.1.3
material-icon-theme PKi 3.7.0
vscode-icons vsc 8.5.0

(1 theme extensions excluded)

@vscodebot vscodebot bot added the new release label Apr 8, 2019
@askilondz
Copy link

Same issue on my angular/typescript application. Git in the editor is hanging. Delaying on commits and pushes if not processing them at all.

@mjbvz mjbvz self-assigned this Apr 8, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Apr 8, 2019

Duplicate of #71886

@mjbvz mjbvz marked this as a duplicate of #71886 Apr 8, 2019
@mjbvz mjbvz closed this as completed Apr 8, 2019
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 8, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators May 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants