AbsolutG
❔ Memory leak in a .NET 7 Webapi application
The application is hosted in a Windows Server under IIS. I know that it has a memory leak because the first time I put in online I got an out-of-memory message. I then checked task manager and saw the memory usage at almost 100%. As soon as I put it offline it went back down to normal levels.
I then made several changes and every time I put it back online I monitored the memory usage and saw it slowly going up and never going back down again until I put it offline.
I did take a memory dump to analyze it. In fact, I tried following all the steps as instructed in the Microsoft Learn page at https://learn.microsoft.com/en-us/dotnet/core/diagnostics/debug-memory-leak. I followed every single step to the letter of what is said in that page, but I'm getting an error.
The problem is that when I get to the point where I need to enter the command "gcroot -all ...", which, as I understand it, is basically what will actually tell me what I need to know, all I get is an error:
gcroot -all 7ffe1b5e7290
Unrecognized command or argument '7ffe1b5e7290'
Any ideas?
Thanks!
10 replies