vsdbg memory leak
See original GitHub issueVisual Studio is using the binary vsdbg
to attach the debug session inside a container.
A long running debug session with few thousand debug output lines,
vsdbg
will consume an high amount of memory.
The memory grow is linear and reaches >800MB.
A workaround would be to detach and attach Visual Studio to the running debug session.
This issue i experience already in 2019 and it is persistent in the current versions: Visual Studio 2019 16.6.5 mcr.microsoft.com/dotnet/core/sdk:3.1 mcr.microsoft.com/dotnet/core/aspnet:3.1 win10 2004, wsl2 docker 2.3.0.4
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Memory leaks while running vscode debugger on linux only
Oh the problem is that dotnet debugger (vsdbg) seems leaking memory on linux machine (or linux container) or mac. On windows, virtual memory...
Read more >Debug a memory leak in .NET Core
A memory leak may happen when your app references objects that it no longer needs to perform the desired task.
Read more >Choose a memory analysis tool - Visual Studio (Windows)
To find memory leaks and inefficient memory usage, you can use tools such as the debugger-integrated Memory Usage diagnostic tool or tools ......
Read more >c# - Debugging .NET memory leaks - how to know what is ...
I am working on a .NET application where there appears to be a memory leak. I know the text-book answers, that events should...
Read more >The .NET Core Journey at Criteo
Let's take two examples involving the .NET Garbage Collector. First, our containers were using Linux cgroups to manage quotas including memory ...
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 FreeTop 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
Top GitHub Comments
I had now a long debug session over 2-3 days.
There after 2-4 days the user-debug output stopped and only
The thread 0xXX has exited with code 0 (0x0).
got printed out over view houres.I detached visiual studio from the debug session and
vsdbg
inside the container got closed. The container fall from 870MB memory usage to 160MB.After i attached a new debug session to the container, user-debug output got generated and the app tried to reconnect and made worked/responded.
It is most likely a thread starvation inside the container from
vsdbg
thx, I will close the issue then.