Skip to content

Extension needs tremendous RAM #2092

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

Closed
pilgi3 opened this issue Jul 16, 2019 · 4 comments
Closed

Extension needs tremendous RAM #2092

pilgi3 opened this issue Jul 16, 2019 · 4 comments

Comments

@pilgi3
Copy link

pilgi3 commented Jul 16, 2019

Issue Type: Bug

I openend different *.ps1 files, but only in read mode.
No script was started and after some time the extension suddenly needed a lot of RAM.
Visual Code was installed on Server 2016 and is a device installation (no user setup).
This behavior has not been observed in the past.

Extension version: 2019.5.0
VS Code version: Code 1.36.1 (2213894ea0415ee8c85c5eea0d0ff81ecc191529, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.14393

System Info
Item Value
CPUs Intel(R) Xeon(R) Gold 6132 CPU @ 2.60GHz (8 x 2600)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled_readback
webgl2: enabled_readback
Load (avg) undefined
Memory (System) 24.00GB (12.06GB free)
Process Argv
Screen Reader no
VM 50%
@pilgi3
Copy link
Author

pilgi3 commented Jul 16, 2019

taskmgr

@rjmholt
Copy link
Contributor

rjmholt commented Jul 16, 2019

Duplicate of #1552.

This happens for a couple of reasons. One is because of the extension trying to resolve references in your ps1 files. To work where references come from, we must resolve file paths and modules and use PowerShell to do so. Another cause is PSScriptAnalyzer diagnosing and formatting, which again performs module look ups to determine things like aliases.

We're doing some work in the extension currently that we hope will pay off in terms of improved performance here.

You might experience some improvement by turning off CodeLens, which should be covered in the linked issue.

@rjmholt rjmholt closed this as completed Jul 16, 2019
@pinkylabs
Copy link

I was looking into the same issues and noticed that it (above mentioned script) seems it scans all over the hard drives on places I even forgot they exist ;) Maybe 'we must resolve file paths' step is what I'm hitting into. The memory ends up around 600M on the scan is completed. As soon as I start a dummy script in the editor the scanning starts again. (Observing with Sysinternal's ProcessMonitor)

@ghost
Copy link

ghost commented Feb 9, 2022

Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants