Click here to Skip to main content
15,887,331 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I work on Visual Studio 2022 ASP.NET Core 7 applications with C#. The project is not big, may be small or medium.

After opening my computer and starting to work on Visual Studio 2022, it fills memory until the computer hangs or freezes and gives me error.

Out of memory

From task manager, problem shown to me when opening Visual Studio 2022 for any project more than 40 services open.

So how to automatically not make this service run to prevent memory from getting full.

I checked task manager. I found Visual Studio takes too much from memory.

So how do I solve this issue? Please help.

What I have tried:

Computer hangs and freezes when opening Visual Studio alone or with other application because service related to that opens with Visual Studio.
Posted
Updated 1-Nov-23 9:35am
v2
Comments
Dave Kreskowiak 1-Nov-23 10:01am    
"40 service open"? What does that mean? What "service"? What's the process name(s)?

1 solution

Experiencing performance issues and memory consumption problems with Visual Studio can be frustrating, and there are a few steps you can take to optimize your development environment and prevent your computer from hanging or freezing. You need to check you code with respect to the reoccurring exception, memory leakage and unnecessary repetition which keep on until all memory is used up. Issue has not seems to do with the services running. Further, this article helps you troubleshoot Out of Memory errors in ASP.NET.
https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/aspnet/health-diagnostic-performance/troubleshoot-outofmemoryexception
 
Share this answer
 
Comments
Richard Deeming 1-Nov-23 4:57am    
Two things to note:

1) Ahmed is a notorious "help vampire". The only response you should expect is demands for ever more details which can never be satisfied.

2) To me, a lot of your answers read as if they were generated by an AI tool like ChatGPT. If they are, then you need to add a note of which tool was used to generate them to avoid more trigger-happy members from reporting your account.
M Imran Ansari 1-Nov-23 7:00am    
Thank you for your feedback. I want to clarify that I'm utilizing some search engines to find out the best possible answer if I have some misperception to generate comprehensive responses. To ensure transparency, I will include a reference note in my future messages. Your input is valuable, and I appreciate your understanding.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900