question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vsdbg memory leak

See original GitHub issue

Visual 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Zetanovacommented, Sep 4, 2020

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

0reactions
Zetanovacommented, Oct 27, 2022

thx, I will close the issue then.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found