You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a recommendation on how to use the Memory Usage profiler for a specific service part of a dotnet Aspire solution? The project I want to profile is of type Microsoft.NET.Sdk.Web. I don't have a full networked system yet for the solution. Starting the entire solution via AppHost from the profiler only profiles the orchestrator it seems. I have tried starting the profiler by "Attach to a running process", but the Memory Usage tools is disabled if the process is already running. I have tried stopping the service in question from the Aspire dashboard and starting just that service via the profiler, but that does not work. I guess I can run the profiler on that single project when hosted using IIS, but then I would have to figure out how to override the Aspire service discovery to find the "external" service and vice versa.
I have also tried using dotnet-gcdump. But I have not been able to progress with finding the memory leak using the reports generated from the gcdumps. Might be a skills issue but I am hoping the snapshots feature of the memory profiler within Visual Studio would be more helpful.
So the question is whether there is a recommendation/documentation on how to memory profile a specific service while still maintaining the benefits of Aspire?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a recommendation on how to use the Memory Usage profiler for a specific service part of a dotnet Aspire solution? The project I want to profile is of type Microsoft.NET.Sdk.Web. I don't have a full networked system yet for the solution. Starting the entire solution via AppHost from the profiler only profiles the orchestrator it seems. I have tried starting the profiler by "Attach to a running process", but the Memory Usage tools is disabled if the process is already running. I have tried stopping the service in question from the Aspire dashboard and starting just that service via the profiler, but that does not work. I guess I can run the profiler on that single project when hosted using IIS, but then I would have to figure out how to override the Aspire service discovery to find the "external" service and vice versa.
I have also tried using dotnet-gcdump. But I have not been able to progress with finding the memory leak using the reports generated from the gcdumps. Might be a skills issue but I am hoping the snapshots feature of the memory profiler within Visual Studio would be more helpful.
So the question is whether there is a recommendation/documentation on how to memory profile a specific service while still maintaining the benefits of Aspire?
Beta Was this translation helpful? Give feedback.
All reactions