microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.56k stars 266 forks source link

Dev containers Triggers high CPU from security JAMF on Mac #9550

Open ianfiske opened 5 months ago

ianfiske commented 5 months ago

Type: Bug

My company uses JAMF for security on our mac laptops. We are seeing high CPU from the security app JAMF (process com.jamf.protect.security-extension) when this extension is active. CPU is normal only after the extension is disabled.

Extension version: 0.338.1 VS Code version: Code 1.86.1 (Universal) (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:09:01.236Z) OS version: Darwin arm64 23.3.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|6, 5, 6| |Memory (System)|32.00GB (6.14GB free)| |Process Argv|--crash-reporter-id 0c6f6262-3aa1-493c-8354-ba5f223c8d5a| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 bf62j303:30959262 fegfb526:30961430 ccp1r6:30958156 ```
chrmarti commented 5 months ago

Do you have a way to find out what the extension does that triggers this? Are you seeing similar behavior with other extensions, e.g., the Docker extension?

ianfiske commented 4 months ago

Unfortunately, I don't know of a way to inspect what about the extension is triggering this. JAMF is a rather opaque security app.

No, I am not seeing this from any other extensions.

chrmarti commented 4 months ago

Maybe a CPU profile of the extensions would tell us, could you follow https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-the-running-extensions ?

ianfiske commented 4 months ago

Here's a CPU profile collected while the Dev Containers extension is enabled. Once again, while the extension was enabled, the com.jamf.protect.security-extension process on my machine spun up a lot of CPU.

CPU-20240301T141347.932Z.cpuprofile

jpfeltracco commented 4 months ago

FYI I'm seeing similar issue. Going to also open a ticket with Jamf

VSCodeTriageBot commented 2 days ago

Hey @chrmarti, this issue might need further attention.

@ianfiske, you can help us out by closing this issue if the problem no longer exists, or adding more information.