Skip to content

[BUG] Extream high memory usage on c#devkit #2043

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

Open
thunder6230 opened this issue May 26, 2025 · 3 comments
Open

[BUG] Extream high memory usage on c#devkit #2043

thunder6230 opened this issue May 26, 2025 · 3 comments
Labels
area-roslyn bug Something isn't working high-priority needs-more-info Needing more information, waiting on OP perf Performance related issues

Comments

@thunder6230
Copy link

Describe the Issue

i have few enterprise projects and the memory consumption breaks my pc while building the app.

on opeining:
Image

on loaded:

Image

on building:

Image

I got black screen on my mashine last week. If i kill the language server it works fine but i lose the ability to work with it in vscode. The project will grow and i can't avoid it. Please optimize the memory usage of the language server

Steps To Reproduce

No response

Expected Behavior

i tried on rider non commercial version and it consumed memory but not that high. it was around 10 gigs altogether.

Environment Information

os: win 11 professional
hardware: i7 13700h, 32 gb ram ssd etc. in a lenovo thinkbook
vscode: newest, c# devkit newest (not prerelease version)

@thunder6230 thunder6230 added the bug Something isn't working label May 26, 2025
@thunder6230
Copy link
Author

i started another build from cli after the first completed:

Image

@thunder6230
Copy link
Author

i switched to prerelease version in c#devkit and c#:

Image

@webreidi webreidi added area-roslyn perf Performance related issues high-priority labels May 27, 2025
@dibarbet
Copy link
Member

@thunder6230 if you uncheck the VSCode setting dotnet.server.useServerGC, does it improve the memory usage at all?

@dibarbet dibarbet added the needs-more-info Needing more information, waiting on OP label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-roslyn bug Something isn't working high-priority needs-more-info Needing more information, waiting on OP perf Performance related issues
Projects
None yet
Development

No branches or pull requests

3 participants