extensionHost 100% CPU usage due to Prisma
See original GitHub issueType: Bug
Reproduce:
- Open https://github.com/redwoodjs/redwood-tutorial in VSCode
- Open
schema.prisma - Watch 100% CPU usage that never goes down
Extension version: 4.1.0 VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:39:20.716Z) OS version: Darwin arm64 21.6.0 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M1 Pro (10 x 24) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled |
| Load (avg) | 10, 9, 8 |
| Memory (System) | 32.00GB (1.17GB free) |
| Process Argv | . --crash-reporter-id e55ceadf-1d93-4a73-8748-610272349188 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vscaac:30438847
pylanb8912:30529769
vsclangdc:30486549
c4g48928:30535728
hb751961:30541207
dsvsc012:30540252
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
high cpu usage · Issue #1127 · prisma/language-tools
First, confirm that the CPU usage is high using the Prisma extension from the VS Code marketplace · Open your project using Prisma...
Read more >Why Pan_task Is at 100% and Why You Shouldn't Worry About It
Identifying and fixing high CPU related issues isn't always straightforward and can be quite tedious at times. In case you have questions or ......
Read more >VS Code uses 100% CPU even if it is closed
Like the latest versions of VSCode had an Electron process using too much CPU (40%-100%). Seems to be a bug related to electron....
Read more >VS Code using all of the CPUs and how to fix it
High CPU usage in vscode ... killing processes repeatedly) would only show the "extension host" repeated many times chewing through the CPU.
Read more >Performance planning - Prisma Cloud
CPU. 1%. Time to complete a host scan 1 second. Container scans ... everything) and compliance policy (alert on critical and high issues)...
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

It is 100% reproducible for me. Disabling File Watcher in the Prisma Extension settings makes the problem go away. Is disabling that setting safe to use as a work-around for now?
The fix is now in the latest 4.4.0 version on the marketplace https://marketplace.visualstudio.com/items?itemName=Prisma.prisma 🎊
For those who disabled the File Watcher functionality, you can enable it again.